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,300
questions
2
votes
1
answer
43
views
How do minor/patch upgrades in exposed dependencies affect SemVer?
The SemVer Specification details what to do when dependencies are changed without updating the public API. What exactly constitutes a change to the "public API", however, is still unclear to ...
0
votes
0
answers
11
views
Unexpected exit from nextjs development server
I tried to run dev server of my nextjs frontend using npm run dev but it is exiting on its own. Any idea whats doing on?
CLI
here are some specs:
node: v20.11.0
npm: 10.2.4
OS: Ubuntu 22.04.3 LTS
next:...
-1
votes
1
answer
20
views
Terminal not recognizing npm and node, installed with nvm (on MAC) [closed]
I have installed nodejs and npm using NVM on mac, Whenever i open new terminal, it keep forgetting npm and node. I am using mac
I am facing this error
npm not found
npm -v
I am expecting the npm ...
-2
votes
1
answer
28
views
npm install failed in expo react native project on MacOs M1
I was trying to install a package in expo React Native project without success. Based on some recommendations from related, I deleted node_modules folder and then tried running npm install to install ...
0
votes
0
answers
12
views
Trying to use '' npm install" on company system. and now i amd getting this error
[i just copy this commanrt from npm after publish this pakage and it give me this error i want to fix this isue as soon as possible it will be glad iff anyone help me.i can see many people ans about ...
0
votes
0
answers
29
views
React Material UI VITE - Theme Problem - createTheme_default is not a function
in our React - Material UI Application for the frontend, we currently have the problem that sometimes when we switch the branch, we get the error: createTheme_default is not a function in the browser ...
0
votes
0
answers
12
views
Error message: Download Playwright on my Windows Laptop
Im trying to download playwright on visual studio on my windows computer but it came up with this error message even though I have downloaded node.js. I tried to download it using npm by using the ...
0
votes
0
answers
41
views
Appropriate loader to handle this file type .mjs | webpack
I recently added @radix-ui/react-navigation-menu to my project. However, upon attempting to rebuild, I encountered the following error message: the error..
Interestingly, other components from the ...
0
votes
0
answers
90
views
When npm install return "Cannot find module 'node:path'"
I'm installing an old project in a new macbook intel chip machine.And i install node-v18.20.4.pkg already.But i get wrong message from console.
Error: Cannot find module 'node:path'
Require stack:
- /...
0
votes
1
answer
48
views
when upgrading to angular 18, i get : While resolving: [email protected] => Found: @angular/[email protected]
when i use the ng update:
We analyzed your package.json and everything seems to be in order. Good work!
but still when i use npm i i get this:
I tried fixing it but nothing works.. dont know how to ...
0
votes
0
answers
24
views
Docker Image Build with Local Packages
I saw some other questions that never answered this question.
I have a NextJs project that I am dockerizing. The projects uses a local dependency, which is a generated api client using the OpenAPI ...
0
votes
1
answer
25
views
Issue with visual studio code and node
Today i try to learn react js but i face a issue.In my vs code i cant install anything..like npx create-react-app todoapp .It saw a error like this ($ npx create-react-app cc '"node"' is not ...
0
votes
0
answers
23
views
npm dependencies from private repository
I'm trying to use a package I've created in my vue3 application; the package is hosted in a private repository;
in particular the package uses json-editor-vue 0.15.1 that depends on vanilla-jsoneditor ...
0
votes
1
answer
65
views
Facing issue while upgrading yarn 1.22.x to 3.8.3 in azure build pipeline
I need to upgrade yarn 1.22.x to 3.8.3 in azure build pipeline. I have modified the pipeline yml file:
- task: NodeTool@0
inputs:
versionSpec: '16.x'
checkLatest: true ...
0
votes
0
answers
12
views
How can i have 1 package.json file in a react app or run a script?
I have a react and there is a package.json file in the main project and then there is one ion the ClientApp.
So when i start the project I need to do an npm install on the main and the move to the ...