mac osx 10.10 node v.10.33,node我是用brew安装的 输入sudo npm install -g hexo
第一个警告: [email protected] install /usr/local/lib/node_modules/hexo/node_modules/chokidar/node_modules/fsevents node-gyp rebuild gyp WARN EACCES user “root” does not have permission to access the dev dir “/Users/xiangwenwen/.node-gyp/0.10.33” gyp WARN EACCES attempting to reinstall using temporary dev dir “/usr/local/lib/node_modules/hexo/node_modules/chokidar/node_modules/fsevents/.node-gyp”
第二个错误信息: gyp WARN install got an error, rolling back install gyp WARN install got an error, rolling back install gyp ERR! configure error gyp ERR! stack Error: node-v0.10.33.tar.gz local checksum 045280b98cf30b93bb9baec62a1ae12d46b9657d2501718a7c1648c1d61a3096 not match remote 75dc26c33144e6d0dc91cb0d68aaf0570ed0a7e4b0c35f3a7a726b500edd081e gyp ERR! stack at deref (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/install.js:299:20) gyp ERR! stack at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/install.js:340:13) gyp ERR! stack at IncomingMessage.emit (events.js:117:20) gyp ERR! stack at _stream_readable.js:943:16 gyp ERR! stack at process._tickCallback (node.js:419:13) gyp ERR! System Darwin 14.0.0 gyp ERR! command “node” “/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “rebuild” gyp ERR! cwd /usr/local/lib/node_modules/hexo/node_modules/chokidar/node_modules/fsevents gyp ERR! node -v v0.10.33 gyp ERR! node-gyp -v v1.0.2 gyp ERR! not ok npm WARN optional dep failed, continuing [email protected]
尝试的解决办法: 一,sudo npm install -g node-gyp 安装node-gyp,然后再运行,警告与错误同上。 二,给/var/root改变权限,sudo chmod -R 777 /var/root 然后再运行,依然同上。
我无法解决这个问题,所以只发帖了,如果有人知道,还麻烦告诉一下,谢谢啦~