Sign in

NVM cannot download NPM when downloading node

rock edited in Sun, 24 Apr 2022

After using NVM to download the node, the error prompt program is occupied, and then the node_ The modules folder is empty

C:\Users\Administrator>nvm uninstall 8.12.0
Uninstalling node v8.12.0... done
C:\Users\Administrator>nvm install 8.12.0
Downloading node.js version 8.12.0 (64-bit)...
Downloading npm version 6.4.1... Download failed. Rolling Back.
Rollback failed. remove C:\dev\nvm\temp\npm-v6.4.1.zip: The process cannot access the file because it is being used by another process.
Could not download npm for node v8.12.0.
Please visit https://github.com/npm/cli/releases/tag/v6.4.1 to download npm.
It should be extracted to C:\dev\nvm\v8.12.0

There is no NPM command in the folder


The image address has also been changed

root: C:\dev\nvm
path: C:\dev
arch: 64
proxy: none
node_mirror: http://npm.taobao.org/mirrors/node/
npm_mirror: http://npm.taobao.org/mirrors/npm/

Ask God for a solution

6 Replies
commented on Sun, 24 Apr 2022

When using NVM windows higher version, you need to install NPM separately. NVM is only used to manage the node version, but not the NPM function

commented on Sun, 24 Apr 2022

NVM uses NVM windows? Set NPM image for NVM and try again

nvm uninstall 8.12.0
nvm npm_mirror https://npm.taobao.org/mirrors/npm/
nvm install 8.12.0
commented on Sun, 24 Apr 2022

I just met this problem. My solution is to go to the next one and put it in D: nvmv8.12.0 node_ I will also install the previous version NPM under modules npm.cmd These two files were copied and solved in the past

Tell me about other ways

commented on Sun, 24 Apr 2022

Win NVM has the same problem. Install the latest NVM windows 1.1.7 solution.

commented on Mon, 25 Apr 2022

Check whether Taobao source has the version you installed. Sometimes, it may be that the update of Taobao mirror station is not timely, which leads to the download failure. You can take the following methods to solve the problem:

  • Science Online
  • Download from GitHub https://github.com/npm/cli/re... , and then find a server to put it on (or build it locally), and temporarily change the NPM download source to its own server folder.
  • Change the NPM source to GitHub's release address (slow but downloadable), for example: modify settings.txtnpm_mirror: https://github.com/npm/cli/archive/ Or use the command:https://github.com/npm/cli/archive/ Or use the command:
  • Direct download and manual installation
commented on Mon, 25 Apr 2022

Do you know what's going on?

lock This question has been locked and the reply function has been disabled.