nvm 下载不到node

nvm 下载不到node

📔 千寻简笔记介绍

千寻简笔记已开源,Gitee与GitHub搜索chihiro-notes,包含笔记源文件.md,以及PDF版本方便阅读,且是用了精美主题,阅读体验更佳,如果文章对你有帮助请帮我点一个Star

更新:支持在线阅读文章,根据发布日期分类。

简介

在安装 8.9.0的时候报错:

  • The process cannot access the file because it is being used by another process.:该进程无法访问该文件,因为它正在被另一个进程使用。
  • Could not download npm for node v8.9.0.:无法下载节点v8.9.0的npm。
C:\Windows\system32>nvm install 8.9.0
Downloading node.js version 8.9.0 (64-bit)...
Complete
Creating F:\java\nvm\temp

Downloading npm version 5.5.1... Download failed. Rolling Back.
F:\java\nvm\temp\npm-v5.5.1.zip
Rollback failed. remove F:\java\nvm\temp\npm-v5.5.1.zip: The process cannot access the file because it is being used by another process.
Could not download npm for node v8.9.0.
Please visit https://github.com/npm/cli/releases/tag/v5.5.1 to download npm.
It should be extracted to F:\java\nvm\v8.9.0

本文关键词

The process cannot access the file because it is being used by another process.Could not download npm for node v8.9.0.

实现步骤

1 找到settings.txt

  • 在nvm 安装目录中,例如我本地:F:\java\nvm\settings.txt

  • 修改:

    node_mirror: http://npm.taobao.org/mirrors/node/
    npm_mirror: https://github.com/npm/cli/archive/
    

完整配置settings.txt

root: F:\java\nvm
path: C:\Program Files\nodejs
node_mirror: http://npm.taobao.org/mirrors/node/
npm_mirror: https://github.com/npm/cli/archive/

2 重新安装

  • 安装之前先卸载之前的包F:\java\nvm\temp
2.1 卸载
nvm uninstall <version>
2.2 安装
nvm install 8.9.0

3 设置npm镜像源改变全局的注册

  • 设置成淘宝源
npm config set registry https://registry.npm.taobao.org
  • 查看结果
npm config get registry

输出结果:

https://registry.npm.taobao.org/
  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

千寻简

感谢支持

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值