Skip to content
This repository has been archived by the owner on Sep 11, 2021. It is now read-only.

Failed to upgrade from 6.4.1 to 6.8.0 #140

Open
sgaspari opened this issue Feb 21, 2019 · 4 comments
Open

Failed to upgrade from 6.4.1 to 6.8.0 #140

sgaspari opened this issue Feb 21, 2019 · 4 comments

Comments

@sgaspari
Copy link

Impossible to update NPM on Windows 2016 server following the described procedure in a PowerShell administrator window :

PS C:\Windows\system32> npm-windows-upgrade --npm-path "C:\nodejs" --no-dns-check
npm-windows-upgrade v6.0.1
? Which version do you want to install? 6.8.0
Given path C:\nodejs is a valid directory.
Upgrading npm... |

Upgrading npm (fallback method)... -

You wanted to install npm 6.8.0, but the installed version is 6.4.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 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.15.1 | v8: 6.8.275.32-node.12 | uv: 1.23.2 | zlib: 1.2.11 | ares: 1.15.0 | modules: 64 | nghttp2: 1.34.0 | napi: 3 | openssl: 1.1.0j | icu: 62.1 | unicode: 11.0 | cldr: 33.1 | tz: 2018e | os: win32 x64 | OS Name: Microsoft Windows Server 2016 Standard OS Version: 10.0.14393 N/A Build 14393

@gingur
Copy link

gingur commented Feb 21, 2019

running into the same on after upgrading to node 10 (LTS) on Win10

Debug Information:

http_parser: 2.8.0 | node: 10.15.1 | v8: 6.8.275.32-node.12 | uv: 1.23.2 | zlib: 1.2.11 | ares: 1.15.0 | modules: 64 | nghttp2: 1.34.0 | napi: 3 | openssl: 1.1.0j | icu: 62.1 | unicode: 11.0 | cldr: 33.1 | tz: 2018e | os: win32 64 | OS Name: Microsoft Windows 10 Enterprise
OS Version: 10.0.14393 N/A Build 14393```

@felixrieseberg
Copy link
Owner

Thanks for letting me know, I'll take a look next week.

@marckassay
Copy link

I wasn't able to update npm with npm-windows-upgrade. Perhaps it's because I have nodejs installed by nvm?

At any rate, the solution for me was what Pedi T. mentioned here.

@sgaspari
Copy link
Author

sgaspari commented Mar 6, 2019

NPM successfully updated to 6.8.0 version thanks this batch script : coreybutler/nvm-windows#300 (comment)
To execute into NodeJS install folder (ie. npm.bat script folder)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants