Comments (2)
I had the same issue. I guess this tool does not work (or is not even required) when you use NVM
See the npm remarks [here](see https://github.com/nvm-sh/nvm#migrating-global-packages-while-installing) and check the --latest-npm
flag.
If my guess is true, it would be great, if the maintainers could add a little hint section regarding NVM to the readme file.
from npm-windows-upgrade.
I was having issues upgrading npm from version 6.x to version 7.6.3 and the CLI output was of no help. I googled an error message similar to OP's and found this comment from a closed issue. I then followed the instructions:
Uninstall nodejs, not repair!, UNINSTALL.
Go into%programfiles%\nodejs
and delete the entire folder.
Delete%appdata%\npm
and%appdata%\npm-cache
Edit your PATH and remove everything that references npm (either program files or appdata).At this point you should have a blank slate. No node packages, no node in your path, nothing.
So then install the latest node from nodejs.org.
I ran the Node 15.2 installer, and this correctly upgraded npm to 7.6.3.
I'm not sure if this was the "correct" procedure, but it's the first thing that worked after 20 minutes of searching. Whatever the workaround should be, I would suggest that it be included in the CLI error message.
from npm-windows-upgrade.
Related Issues (20)
- Scope specified more than once (powershell)
- Error: spawn powershell.exe ENOENT HOT 4
- I got this error at the time of run command "ng serve --open". HOT 1
- expo start not opening project
- npm install
- Can't update problem (even for admin) HOT 2
- npm ERR! cb.apply is not a function While trying to Update the Npm the Windows way. HOT 1
- Error: Npm start
- Error to upgrade: from 6.14.8 to the latest
- npx create-react-app => Error EINTEGRITY
- Cannot find module 'npm-windows-upgrade.js'
- You wanted to install npm 7.6.1, but the installed version is 6.14.11. HOT 2
- "Scripts cannot be executed on this system." on pwsh 7 if process scope is not Unrestricted
- npm install express --save Error
- npm ERR! code EINTEGRITY
- failed to upgrade npm
- while enter npm start for runt a react app it shows error like this
- Cannot install latest version on Windows HOT 1
- Can't execute npm-windows_update
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from npm-windows-upgrade.