npm报错
Closed this issue · 4 comments
yansheng836 commented
$npm i -g csdnsynchexo
……
npm ERR! path C:\Users\yansheng\AppData\Roaming\npm\node_modules\csdnsynchexo\dist\start.js
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall chmod
npm ERR! enoent ENOENT: no such file or directory, chmod 'C:\Users\yansheng\AppData\Roaming\npm\node_modules\csdnsynchexo\dist\start.js'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\yansheng\AppData\Roaming\npm-cache\_logs\2019-09-04T14_45_39_910Z-debug.log
flytam commented
我这边测试安装正常的
yansheng836 commented
npm版本有关系?
C:\Users\yansheng>npm -v
6.9.0
flytam commented
yansheng836 commented
参考这篇博客:https://blog.csdn.net/IT_hejinrong/article/details/80734410,解决了问题。
(通过config命令)换一个npm安装源就好了,具体方法如下:
npm config set registry https://registry.npm.taobao.org
npm info underscore (如果上面配置正确这个命令会有字符串response)
@flytam 不是包的问题,谢谢你的解答。