gnvm
gnvm copied to clipboard
安装npm6.0.0时出错
安装npm6.0.0的时候会报如下错误:
Waring: current path D:\nodejs\ not exist npm.
Notice: local npm version is unknown
Notice: remote npm version is 6.0.0
Notice: download 6.0.0 version [Y/n]? y
Start download new npm version v6.0.0.zip
v6.0.0.zip: 100% [==================================================>] 1s
Start unzip and install v6.0.0.zip zip file, please wait.
Notice: D:\nodejs\node_modules folder create success.
Error: 'gnvm npm 6.0.0' an error has occurred. please check.
Error: unzip v6.0.0.zip an error has occurred.
Error: %!(EXTRA string=open D:\nodejs\node_modules\npm-6.0.0\node_modules\libnpmhook\node_modules\npm-registry-fetch\node_modules\make-fetch-happen\node_modules\http-proxy-agent\node_modules\agent-base\node_modules\es6-promisify\node_modules\es6-promise\lib\es6-promise\promise\all.js: The system cannot find the path specified.)
不知道是否跟6.0.0中的依赖有所变化有关
我现在在 Mac 上,无法测试,请问能复现吗?另外,gnvm 的源是哪个?
目前使用的是淘宝的源
via: .gnvmrc
registry: http://npm.taobao.org/mirrors/node/
BTW:用其他的nvm类工具安装npm6.0.0的时候在win下都会报错,感觉是依赖有所改变。根据错误提示,使用了管理员权限,并各种删除操作之后还是会报错。降级使用5.8.0之后是正常的。5.8.0以上的版本都会出现问题。
感谢反馈,估计文件夹结构改变造成的。 需要适配新的结构了。