NVM安装不同版本NODEJS问题

NVM安装NODEJS问题

一、报错内容

Downloading npm version 6.9.0... Error while downloading https://github.com/npm/cli/archive/v6.9.0.zip - Get https://github.com/npm/cli/archive/v6.9.0.zip: unexpected EOF
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x20 pc=0x5c6eb0]

goroutine 1 [running]:
_/C_/Users/corey/Documents/workspace/nvm-windows/src/nvm/web.Download(0x112fc360, 0x2d, 0x11418000, 0x3e, 0x11441fc0, 0x5, 0x0)
        C:/Users/corey/Documents/workspace/nvm-windows/src/nvm/web/web.go:68 +0x240
_/C_/Users/corey/Documents/workspace/nvm-windows/src/nvm/web.GetNpm(0x112fc4e1, 0x2a, 0x11441fc0, 0x5, 0x44)
        C:/Users/corey/Documents/workspace/nvm-windows/src/nvm/web/web.go:163 +0x21b
main.install(0x112f80e0, 0x7, 0x660283, 0x2)
        C:/Users/corey/Documents/workspace/nvm-windows/src/nvm.go:268 +0x626
main.main()
        C:/Users/corey/Documents/workspace/nvm-windows/src/nvm.go:78 +0x8cd

NVM安装不同版本NODEJS问题_第1张图片

二、解决方案

参考博客:https://blog.csdn.net/N1keo/article/details/89971307?ops_request_misc=&request_id=&biz_id=102&utm_term=Downloading%20npm%20version%206.9.0.&utm_medium=distribute.pc_search_result.none-task-blog-2allsobaiduweb~default-0-89971307.nonecase&spm=1018.2226.3001.4187
NVM安装不同版本NODEJS问题_第2张图片
NVM安装不同版本NODEJS问题_第3张图片

node_mirror: http://npm.taobao.org/mirrors/node/
npm_mirror: https://npm.taobao.org/mirrors/npm/

三、window默认nvm安装路径

C:\Users\Administrator\AppData\Roaming\nvm

你可能感兴趣的:(java)