nvm 管理你的node

1、安装nvm 

2、nvm 管理命令

nvm ls-remote 可以会列出所有可用的 Nodejs 版本

nvm install v11.0.0  就可以把这个版本的 Nodejs 安装到我们的机器上了。



nvm list 可以查看当前已安装的node版本


nvm use 10.16.3 可以使用指定版本号的node





查看node 版本: https://github.com/nodejs/node/releases/tag/




 

安装:nvm install 14.18.2

 nvm install 14.18.2
Downloading node.js version 14.18.2 (64-bit)...
Complete
Creating C:\Users\Administrator\AppData\Roaming\nvm\temp

Downloading npm version 6.14.15... Error while downloading https://github.com/npm/cli/archive/v6.14.15.zip - Get "https://github.com/npm/cli/archive/v6.14.15.zip": read tcp 192.168.1.211:55181->20.205.243.166:443: wsarecv: An established connection was aborted by the software in your host machine.
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x20 pc=0xe19b27]

goroutine 1 [running]:
nvm/web.Download({0x12cae150, 0x2f}, {0x12c86340, 0x40}, {0x13222c10, 0x7})
        C:/Users/corey/OneDrive/Documents/workspace/oss/coreybutler/nvm-windows/src/web/web.go:81 +0x297
nvm/web.GetNpm({0x12cae241, 0x2a}, {0x13222c10, 0x7})
        C:/Users/corey/OneDrive/Documents/workspace/oss/coreybutler/nvm-windows/src/web/web.go:209 +0x379
main.install({0x12ca2080, 0x7}, {0xe7fa65, 0x2})
        C:/Users/corey/OneDrive/Documents/workspace/oss/coreybutler/nvm-windows/src/nvm.go:356 +0xa8a
main.main()

 

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值