Questions tagged [npm]
npm is the package manager shipped with Node.js. It can be used to install and publish CommonJS and ECMAScript modules, jQuery plugins, reusable JavaScript code (libraries), JavaScript-based CLI programs, and more.
50,217
questions
0
votes
0
answers
4
views
Make frontend maven plugin install node_modules in the same directory as the package.json, NOT in a /node directory
How it works currently:
during the generate-resource phase of maven build the frontend maven plugin installs all the dependencies in /node directory created in the working directory specified in the ...
0
votes
1
answer
16
views
node.js v18 using babel - how to import module with extension and how to run from build folder (commonJS) while type:module is in package.json
I am using Node.JS v18.20.4 with Babel.
Here is my babel.config.json
{
"presets": [
[
"@babel/preset-env",
{
"targets": {
"node&...
0
votes
0
answers
11
views
I'm getting an error installing node-speaker on Mac
I'm getting the following error log when trying to install speaker.
$ npm install speaker
npm ERR! code 1
npm ERR! path /Users/username/code/play/node_modules/speaker
npm ERR! command failed
npm ERR! ...
0
votes
0
answers
46
views
Exit handler never called! This is an error with npm itself
I am trying to run tests in the pipeline for a react application. Script looks as below:
Earlier the first three lines weren't there. I have tried running the command npm install with --force/--legacy-...
0
votes
0
answers
28
views
Having trouble running a project locally/ npm install, dependency issues
I am trying to run an example project locally. Its a full stack project so it needs to access a mongodb database. I downloaded the project files, and ran npm install so I could get everything set up, ...
0
votes
0
answers
12
views
npm install fails in Azure Pipeline
I am confused...
We have build pipelines for several projects running on self-hosted build agents on a single server. All pipelines are setup the same:
checkout from GIT
install Node
npm authenticate
...
0
votes
0
answers
12
views
Getting "TypeError: Cannot read properties of null" while trying to install NextJS
I'm following this official tutorial:
https://nextjs.org/learn/react-foundations/installation
When I run this command:
npm install react@latest react-dom@latest next@latest
I got this error:
npm ...
1
vote
1
answer
32
views
ng not found error when building Angular project using dockerfile
I came into a very strange issue yesterday. I have been working on an Angular project and deploying using docker. Everything works fine till yesterday, all of sudden I cannot build the docker image. ...
0
votes
2
answers
56
views
Why does creating a React/Vite app take so much time?
I'm trying to make a simple app with React but I'm stuck at the first step. It doesn't seem to do anything at all. Tried with both npx create-react-app and npm create vite@latest:
It's stuck on the ...
0
votes
1
answer
18
views
Install peer dependencies in lib automatically on the client side
I am developing a React package/library and have compiled it using Rollup. The package includes several components that need to be used in an Angular app.
I've specified a few packages as ...
-2
votes
0
answers
34
views
what is this "ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time"
I have created an npm package and when we run it using npx it outputs the result but also give this error before printing output:
ExperimentalWarning: Importing JSON modules is an experimental ...
2
votes
0
answers
32
views
npx hanging during initialization of react, expo, and next app
I am currently experiencing an issue where the following commands (and potentially more) hang indefinitely when trying to initialize a project:
npx create-react-app
npx create-expo-app
npx create-...
0
votes
1
answer
33
views
I am not able to create my first react app. Can anyone help me?
PS C:\Users\rkmgr\OneDrive\Desktop\react course> npx create-react-app my-app
npm error code ENOENT
npm error syscall lstat
npm error path C:\Users\rkmgr\OneDrive\Desktop\react course\%APPDATA%\npm
...
0
votes
0
answers
15
views
Webpack complied with 1 error when i try to npm run dev [closed]
I am doing a course on javaScript in udemy. It is first time i am using things like webpack and babel , in my final step of project setting when i try to do npm run dev . I get this error
C:\Users\...
1
vote
2
answers
27
views
Angular local library component rendering error (reading 'bindingStartIndex')
I've got a thing to discuss on Angular 12/13.
I'm not a huge frontend hero, and have never dealed with own angular libraries, so may be I'm asking stupid questions, so sorry, but..
Here (github) a ...