Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPM github repo is moving from npm/npm to npm/cli and it causes NVM to fail to install it #373

Closed
PlanetVaster opened this issue Aug 1, 2018 · 11 comments

Comments

@PlanetVaster
Copy link

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).

@coreybutler
Copy link
Owner

Fixed in https://github.com/coreybutler/nvm-windows/releases/tag/1.1.7

@Doehl
Copy link

Doehl commented Aug 2, 2018

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.

@PlanetVaster
Copy link
Author

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

@7sDream
Copy link

7sDream commented Aug 3, 2018

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".

@coreybutler
Copy link
Owner

@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).

@Zhou-Bill
Copy link

Zhou-Bill commented Sep 24, 2018

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

@yashdabi
Copy link

yashdabi commented Sep 10, 2019

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

@EmiyaYang
Copy link

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.

@AhammadAliPK
Copy link

@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
Copy link

yashdabi commented Apr 9, 2020

@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 into C:\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

@ZiuChen
Copy link

ZiuChen commented Nov 2, 2022

@yashdabi

Execllent work! It helps me alot. Thank you!!! 💖

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

No branches or pull requests

9 participants