您的位置:首页 > Web前端 > Node.js

更新node后,pomelo异常 not a package /usr/local/bin/pomelo

2016-01-11 15:01 721 查看
之前node是0.10.41,然后更新到V5.4.0, npm install pomelo -g 异常了,悲剧了!

npm ERR! not a package /usr/local/bin/pomelo
npm ERR! addLocal Could not install /usr/local/bin/pomelo
npm ERR! Darwin 14.3.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "pomelo" "-g"
npm ERR! node v5.4.0
npm ERR! npm  v3.3.12
npm ERR! path /tmp/npm-3295-692a8fdf/unpack-10ff8d466caf2e11ea73df927748a413/package.json
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall open

npm ERR! enoent ENOENT: no such file or directory, open '/tmp/npm-3295-692a8fdf/unpack-10ff8d466caf2e11ea73df927748a413/package.json'
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!     /usr/local/bin/npm-debug.log


最后方法卸载掉node重新装就ok了,至于为什么不知道 O(∩_∩)

卸载方法:/article/7654596.html
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: