npm mysql enoent_尝试从npm安装Yeoman时出现ENOENT错误

我正尝试在cmd中使用以下命令来安装Yeoman:

npm install --global yo我得到以下内容:

npm WARN deprecated npmconf@2.1.2: this package has been reintegrated into npm and is now out of date with respect to npm

npm ERR! Windows_NT 6.1.7601

npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\{userdir}\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "--global" "yo"

npm ERR! node v4.4.4

npm ERR! npm v3.9.0

npm ERR! path C:\{userDIr}\AppData\Roaming\npm\node_modules\yo\lib\cli.js

npm ERR! code ENOENT

npm ERR! errno -4058

npm ERR! syscall chmod

npm ERR! enoent ENOENT: no such file or directory, chmod 'C:{userDir}\AppData\Roaming\npm\node_modules\yo\lib\cli.js'

npm ERR! enoent ENOENT: no such file or directory, chmod 'C:\{userDir}\AppData\Roaming\npm\node_modules\yo\lib\cli.js'

npm ERR! enoent This is most likely not a problem with npm itself

npm ERR! enoent and is related to npm not being able to find a file.

npm ERR! enoent

npm ERR! Please include the following file with any support request:

npm ERR! C:\{userDir}\npm-debug.log安装了以下内容:

Node.js v4.4.4

npm v2.15.1,v3.9.0(我尝试过两种版本,我有完全相同的输出信息)

我的电脑在Windows 7 x64上运行。

我尝试的解决方案

我跑

npm缓存清除

但没有运气。

我卸载并重新安装了node.js,但没有任何更改。

我也尝试了以下内容:

删除了node_modules文件夹

已删除C:\\ AppData \ Roaming \ npm-cache文件夹

取消选中并在C:\ AppData \ Roaming \ npm文件夹的属性中应用只读

我在这里阅读了所有相关问题的答案,但没有任何帮助。

在此之前,我用npm成功安装了bower v1.7.9和grunt v1.2.0,正在执行

npm install --global yo bower grunt-cli任何帮助将不胜感激。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值