Nvm-windows: NPM github repo is moving from npm/npm to npm/cli and it causes NVM to fail to install it

Created on 2 Aug 2018  路  10Comments  路  Source: coreybutler/nvm-windows

NPM is moving from https://github.com/npm/npm to https://github.com/npm/cli and it causes nvm installing node 10.8.0 and higher (which uses npm 6.2.0) to fail to install npm (because npm 6.2.0+ are only on the new repo).

Most helpful comment

Fixed
nvm install 10.16.3
will show error - Could not download npm for node v10.16.3.
download npm version what you want - https://github.com/npm/cli/releases
I had downloaded 6.9.0 npm version - https://github.com/npm/cli/archive/v6.9.0.zip
now go to inside C:\Users\xxx\AppData\Roaming\nvm\v10.16.3\node_modules\ and create new npm folder
it should be look like this C:\Users\xxx\AppData\Roaming\nvm\v10.16.3\node_modules\npm

then downloaded npm compressed file should be extracted to C:\Users\xxx\AppData\Roaming\nvm\v10.16.3\node_modules\npm

then go to C:\Users\xxx\AppData\Roaming\nvm\v10.16.3\node_modules\npm\bin and copy two npm files. first (npm .cmd file), second (npm file)
then paste both files in C:\Users\xxx\AppData\Roaming\nvm\v10.16.3

open cmd and run commands

  1. nvm use 10.16.3
  2. node -v
  3. npm -v

All 10 comments

I have just downloaded and installed the setup file from tag 1.1.7. But it have installed the 1.1.5 version.
I had not nvm-windows installed before.

This issue is not fixed for me in 1.1.7. (Windows 10 x64, en-US). I still get the error message:
Could not download npm for node v10.8.0. Please visit https://github.com/npm/npm/releases/tag/v6.2.0 to download npm. It should be extracted to D:\Users\Andrew\AppData\Roaming\nvm\v10.8.0

same here, install use nvm-setup.zip in 1.1.7 release page, but I got a 1.1.5 version nvm and it's modify time is "2017.5.31".

@Doehl, @PlanetVaster, @7sDream - A new binary was uploaded... you should see 1.1.7 now. Sorry for the late notice (it's been up for awhile).

i have the same issues and i have use nvm for 1.1.7,but i not for me

Fixed
nvm install 10.16.3
will show error - Could not download npm for node v10.16.3.
download npm version what you want - https://github.com/npm/cli/releases
I had downloaded 6.9.0 npm version - https://github.com/npm/cli/archive/v6.9.0.zip
now go to inside C:\Users\xxx\AppData\Roaming\nvm\v10.16.3\node_modules\ and create new npm folder
it should be look like this C:\Users\xxx\AppData\Roaming\nvm\v10.16.3\node_modules\npm

then downloaded npm compressed file should be extracted to C:\Users\xxx\AppData\Roaming\nvm\v10.16.3\node_modules\npm

then go to C:\Users\xxx\AppData\Roaming\nvm\v10.16.3\node_modules\npm\bin and copy two npm files. first (npm .cmd file), second (npm file)
then paste both files in C:\Users\xxx\AppData\Roaming\nvm\v10.16.3

open cmd and run commands

  1. nvm use 10.16.3
  2. node -v
  3. npm -v

Fixed
nvm install 10.16.3
will show error - Could not download npm for node v10.16.3.
download npm version what you want - https://github.com/npm/cli/releases
I had downloaded 6.9.0 npm version - https://github.com/npm/cli/archive/v6.9.0.zip
It should be extracted to C:\Users\xxx\AppData\Roaming\nvm\v10.16.3\node_modules\npm

then go to C:\Users\xxx\AppData\Roaming\nvm\v10.16.3\node_modules\npm\bin and copy two npm files. first (npm .cmd file), second (npm file)
then paste both files in C:\Users\xxx\AppData\Roaming\nvm\v10.16.3

open cmd and run command node -v and npm -v

That's it.

@yashdabi sorry to say that it is not working for me . The below folder is empty
C:\Users\xxxxx\AppData\Roaming\nvm\v10.13.0\node_modules

@yashdabi sorry to say that it is not working for me . The below folder is empty
C:\Users\xxxxx\AppData\Roaming\nvm\v10.13.0\node_modules

@AhammadAliPK download the npm from https://github.com/npm/cli/releases and then the downloaded file extract intoC:\Users\xxxxx\AppData\Roaming\nvm\v10.13.0\node_modules\npm
you have to create npm folder manually inside node_modules
then see my above answer

Was this page helpful?
0 / 5 - 0 ratings

Related issues

snerte picture snerte  路  5Comments

SufyanParkar picture SufyanParkar  路  4Comments

fredericrous picture fredericrous  路  3Comments

hsali picture hsali  路  4Comments

Deilan picture Deilan  路  4Comments