Upgrade failure on Win10 pro
TracyGJG opened this issue · 4 comments
Error reported using PowerShell with Admin permission:
You wanted to install npm 5.6.0, but the installed version is 5.5.1.
A common reason is an attempted "npm install npm" or "npm upgrade npm". As of today, the only solution is to completely uninstall and then reinstall Node.js. For a small tutorial, please see http://aka.ms/fix-npm-upgrade.
Please consider reporting your trouble to http://aka.ms/npm-issues.
Debug Information:
http_parser: 2.7.0 | node: 8.9.1 | v8: 6.1.534.47 | uv: 1.15.0 | zlib: 1.2.11 | ares: 1.10.1-DEV | modules: 57 | nghttp2: 1.25.0 | openssl: 1.0.2m | icu: 59.1 | unicode: 9.0 | cldr: 31.0.1 | tz: 2017b | os: win32 x64 | OS Name: Microsoft Windows 10 Pro
OS Version: 10.0.16299 N/A Build 16299
Was there any other error output?
Had the exact same issue for me as well just a different minor node version (8.9.3). I can confirm that I did initially execute npm i -g npm when I noticed nvm inform me that there was a new version trying to go from 5.5 to 5.6.
I'm in the process of uninstalling node 8.9.3 and reinstalling it. I do have 9.3.0 installed as well as 8.9.3 if that has any impact on the scenario.
I received this exact output on Windows 10 Enterprise. Additional details that might be helpful:
-
Installed nvm via chocolatey to manage node versions
-
Before receiving the error I did attempt the command to self install
-
After the error I uninstalled node and reinstalled
nvm uninstall 10.1
and thennvm install 10.1
,nvm use 10.1
,nvm on
-
After reinstall of node and npm, I run the install of npm-windows-upgrade again and run the command to again receive the output below:
PS C:\Windows\system32> npm-windows-upgrade --npm-version latest
npm-windows-upgrade v5.0.0
Checked system for npm installation:
According to PowerShell: C:\Program Files\nodejs
According to npm: C:\Program Files\nodejs
Decided that npm is installed in C:\Program Files\nodejs
Upgrading npm... /
Upgrading npm (fallback method)... -
You wanted to install npm 6.3.0, but the installed version is 5.6.0.
A common reason is an attempted "npm install npm" or "npm upgrade npm". As of today, the only solution is to completely uninstall and then reinstall Node.js. For a small tutorial, please see https://github.com/felixrieseberg/npm-windows-upgrade#usage.
Please consider reporting your trouble to https://aka.ms/npm-issues.
Debug Information:
http_parser: 2.8.0 | node: 10.1.0 | v8: 6.6.346.27-node.6 | uv: 1.20.2 | zlib: 1.2.11 | ares: 1.14.0 | modules: 64 | nghttp2: 1.29.0 | napi: 3 | openssl: 1.1.0h | icu: 61.1 | unicode: 10.0 | cldr: 33.0 | tz: 2018c | os: win32 x64 | OS Name: Microsoft Windows 10 Pro
OS Version: 10.0.17134 N/A Build 17134