当前位置:   article > 正文

使用nvm更新node版本失败_rollback failed. remove d:\nvm\nvm\v14.15.1\node64

rollback failed. remove d:\nvm\nvm\v14.15.1\node64.exe: the process cannot a

报错

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

在这里插入图片描述

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/羊村懒王/article/detail/198051
推荐阅读
相关标签
  

闽ICP备14008679号