Comments (4)
Actually ... now I am not sure if the update actually worked. Despite what the list command is reporting (see above) doing npm -v returns 2.11.2
from npm-windows-upgrade.
Closed powershell and re-opened and ran npm-windows-upgrade again and received a different error:
PS C:\SolutionTemplates\WebSolution> npm-windows-upgrade
npm-windows-upgrade 0.2.3
? This tool will upgrade npm. Do you want to continue? Yes
? Which version do you want to install? 2.12.1
Upgrading.. /Error: module.js:338
throw err;
^
Error: Cannot find module 'semver'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:278:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> (C:\Users\Warren\AppData\Roaming\npm\node_modules\npm\lib\config\defaults.js:7:14)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
Upgrading.. -
You wanted to install npm 2.12.1, but the installed version is2.11.2.
Please consider reporting your trouble to http://aka.ms/npm-issues.
Here is the output from the upgrader script:
[ 'All done!\r\n' ] [ 'module.js:338\r\n throw err;\r\n ^\r\nError: Cannot find module \'semver\'\r\n at
Function.Module._resolveFilename (module.js:336:15)\r\n at Function.Module._load (module.js:278:25)\r\n at Module.
require (module.js:365:17)\r\n at require (module.js:384:17)\r\n at Object.<anonymous> (C:\\Users\\Warren\\AppData
\\Roaming\\npm\\node_modules\\npm\\lib\\config\\defaults.js:7:14)\r\n at Module._compile (module.js:460:26)\r\n at
Object.Module._extensions..js (module.js:478:10)\r\n at Module.load (module.js:355:32)\r\n at Function.Module._lo
ad (module.js:310:12)\r\n at Module.require (module.js:365:17)\r\n' ]
PS C:\SolutionTemplates\WebSolution>
from npm-windows-upgrade.
Just noticed something that may be relevant to this issue:
My node installation is in C:\nodejs
But reading the manual solution it sounds like the assumption is node is installed in
C:\Program Files (x86)\nodejs
from npm-windows-upgrade.
Actually, I have hopes that the just released version 0.3.2 will fix your issue. Do me a favour and run npm install -g npm-windows-upgrade
and npm-windows-upgrade
again.
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
- Failed to upgrade from 6.14.6 to 6.14.8 HOT 2
- 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.