赞
踩
报错
C: \Users\jake>nvm insta1l12. 11. 1
Dowmloading node. j3 version 12. 11. 1 (64-bit)…
Complete
Creating E: webDev \nvm’temp
Downloading npm version 6. 11. 3… Download failed. Ro11ing Back.
Rol1back failed. remove E: webDev \nvm)temp \npm-v6.11. 3. zip: The process cannot access the file because it is being used
by another process.
Could not download npm for node v12. 11. 1.
P1ease visit https://gi thub. com/ npm/ cli/releases/tag/v6. 11.3 to download npm.
It should be extracted to E: webDev \nvmlv12.11. 1
CAusers \jake>nvm uninsta1l 12. 11.1
Uhikstalling node v12. 11. 1…
done
CNUaers \jake>nvm install 12.11. 1
Downloading node. js version 12. 11. 1 (64-bit)…
Complete
Dowmloading npm version 6. 11. 3… Download failed. Rolling Back.
Ro1 lback failed. remove E: webDev nvm’temp \npm-v6. 11. 3. zip: The process cannot access the file because it is being used
by another process.
Could not download npm for node v12. 11. 1.
P1ease visit https://gi thub. com/ npm/ cli/releases/ tag/v6. 11.3 to dowmload npm.
It should be extracted to E: webDev \nvm\y12. 11.1
解决方法:
1.在node官网下载node二进制文件包
2. 将下载好的二进制文件(*.zip)解压到对应的node版本包管理下(笔者的是在nvm包下,具体情况由安装情况决定),然后将解压的文件夹名字改成对应的版本好,如 v12.11.1
3.打开命令控制台,输入nvm use 最新版本号,即可使用最新的node版本了。
4.查看自己的cnpm,nrm是否能用,如果不能用,执行如下指令:
安装cnpm:
npm install -g cnpm –registry=https://registry.npm.taobao.org
或者: npm install -g cnpm –registry=http://r.cnpmjs.org
安装nrm:
cnpm install nrm -g 或者 npm install nrm -g
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。