[英]npm install “Adding a cache directory” error on windows 7
将Node.js更新到0.10.23
,尝试安装grunt时出现错误: npm install -g grunt-cli
。
系统:Win7 x64。 节点版本:0.10.23,npm版本:1.3.17
66 silly lockFile d63f3d0b-grunt-cli grunt-cli@
67 error Error: Adding a cache directory to the cache will make the world implode.
67 error at addLocalDirectory (c:\nodejs\node_modules\npm\lib\cache.js:1120:45)
67 error at c:\nodejs\node_modules\npm\lib\cache.js:1173:7
67 error at cb (c:\nodejs\node_modules\npm\lib\utils\tar.js:150:7)
67 error at c:\nodejs\node_modules\npm\lib\utils\tar.js:147:9
67 error at c:\nodejs\node_modules\npm\node_modules\lockfile\lockfile.js:61:41
67 error at Object.oncomplete (fs.js:107:15)
68 error If you need help, you may report this *entire* log,
68 error including the npm and node versions, at:
68 error <http://github.com/isaacs/npm/issues>
69 error System Windows_NT 6.1.7601
70 error command "c:\\nodejs\\node.exe" "c:\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "grunt-cli"
71 error cwd z:\home\minpik.lc\www
72 error node -v v0.10.23
73 error npm -v 1.3.17
74 verbose exit [ 1, true ]
谢谢 看起来像是node.js 0.10.23的bug。 我已经完全删除了最新版本并安装了0.8.9,现在可以了。
我遇到了完全相同的问题,看来只有0.10.23版才是问题。 我安装了0.10.22,一切正常。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.