felixrieseberg/npm-windows-upgrade

You wanted to install npm 6.4.1, but the installed version is 5.6.0.

hengsoheak opened this issue · 1 comments

[](Upgrading npm (fallback method)... \

You wanted to install npm 6.4.1, 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: 8.11.3 | v8: 6.2.414.54 | uv: 1.19.1 | zlib: 1.2.11 | ares: 1.10.1-DEV | modules: 57 | nghttp2: 1.32.0 | napi: 3 | openssl: 1.0.2o | icu: 60.1 | unicode: 10.0 | cldr: 32.0 | tz: 2017c | os: win32 x64 | OS Name: Microsoft Windows 10 Pro
OS Version: 10.0.16299 N/A Build 16299
PS C:\Windows\system32>)

and

PS C:\Windows\system32> npm install npm
npm ERR! code ENOSELF
npm ERR! Refusing to install package with name "npm" under a package
npm ERR! also called "npm". Did you name your project the same
npm ERR! as the dependency you're installing?
npm ERR!
npm ERR! For more information, see:
npm ERR!     <https://docs.npmjs.com/cli/install#limitations-of-npms-install-algorithm>

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\sopheak\AppData\Roaming\npm-cache\_logs\2018-09-05T01_48_56_887Z-debug.log
PS C:\Windows\system32> npm upgrade npm
PS C:\Windows\system32> npm upgrade npm
PS C:\Windows\system32>

Ran into this as well.

$ npm -v
5.6.0
$ node -v
v8.10.0
$ systeminfo | findstr /B /C:"OS Name" /C:"OS Version"
OS Name:                   Microsoft Windows 10 Pro
OS Version:                10.0.17134 N/A Build 17134

[edit] this issue looks to duplicate #130