felixrieseberg/npm-windows-upgrade

Can't update problem (even for admin)

goxr3plus opened this issue · 2 comments

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.

Is it maybe a problem that i am using nvm ?

PS C:\WINDOWS\system32> npx npm-windows-upgrade
npx: installed 71 in 5.885s
npm-windows-upgrade v6.0.1
? Which version do you want to install? 6.14.5
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.14.5, but the installed version is 6.13.4.

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:

node: 12.14.1 | v8: 7.7.299.13-node.16 | uv: 1.33.1 | zlib: 1.2.11 | brotli: 1.0.7 | ares: 1.15.0 | modules: 72 | nghttp2: 1.40.0 | napi: 5 | llhttp: 2.0.1 | http_parser: 2.8.0 | openssl: 1.1.1d | cldr: 35.1 | icu: 64.2 | tz: 2019c | unicode: 12.1 | os: win32 x64 | OS Name: Microsoft Windows 10 Pro
OS Version: 10.0.18363 N/A Build 18363

- 

Same issue occurring here. I've even uninstalled and reinstalled Node.js, same issue occurs after.

PS C:\WINDOWS\system32> npm-windows-upgrade
npm-windows-upgrade v6.0.1
? Which version do you want to install? 7.5.6
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 7.5.6, but the installed version is 6.14.8.

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:

node: 15.10.0 | v8: 8.6.395.17-node.25 | uv: 1.41.0 | zlib: 1.2.11 | brotli: 1.0.9 | ares: 1.17.1 | modules: 88 | nghttp2: 1.42.0 | napi: 7 | llhttp: 2.1.3 | openssl: 1.1.1j | cldr: 38.1 | icu: 68.2 | tz: 2020d | unicode: 13.0 | os: win32 x64 | OS Name: Microsoft Windows 10 Home
OS Version: 10.0.18363 N/A Build 18363

Same here, even after uninstalling and reinstalling Node.js.

Just in case it is somehow relevant, I use NVM for Windows too.

PS C:\WINDOWS\system32> npm-windows-upgrade
npm-windows-upgrade v6.0.1
? Which version do you want to install? 7.7.5
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 7.7.5, but the installed version is 6.14.11.

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:

node: 14.16.0 | v8: 8.4.371.19-node.18 | uv: 1.40.0 | zlib: 1.2.11 | brotli: 1.0.9 | ares: 1.16.1 | modules: 83 | nghttp2: 1.41.0 | napi: 7 | llhttp: 2.1.3 | openssl: 1.1.1j | cldr: 37.0 | icu: 67.1 | tz: 2020a | unicode: 13.0 | os: win32 x64 | OS Name: Microsoft Windows 10 Pro
OS Version: 10.0.19042 N/A Build 19042