Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

安装npm6.0.0时出错 #18

Open
xiaofuyesnew opened this issue May 10, 2018 · 3 comments
Open

安装npm6.0.0时出错 #18

xiaofuyesnew opened this issue May 10, 2018 · 3 comments
Labels

Comments

@xiaofuyesnew
Copy link

安装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中的依赖有所变化有关

@Kenshin
Copy link
Owner

Kenshin commented May 10, 2018

我现在在 Mac 上,无法测试,请问能复现吗?另外,gnvm 的源是哪个?

@xiaofuyesnew
Copy link
Author

xiaofuyesnew commented May 11, 2018

目前使用的是淘宝的源

via: .gnvmrc
registry: http://npm.taobao.org/mirrors/node/

BTW:用其他的nvm类工具安装npm6.0.0的时候在win下都会报错,感觉是依赖有所改变。根据错误提示,使用了管理员权限,并各种删除操作之后还是会报错。降级使用5.8.0之后是正常的。5.8.0以上的版本都会出现问题。

@Kenshin
Copy link
Owner

Kenshin commented May 11, 2018

感谢反馈,估计文件夹结构改变造成的。
需要适配新的结构了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants