flytam/blog-sync-tool

npm报错

Closed this issue · 4 comments

$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

我这边测试安装正常的

npm版本有关系?

C:\Users\yansheng>npm -v
6.9.0

不确定,我试下了windows
image
这个版本是可以的

参考这篇博客: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 不是包的问题,谢谢你的解答。