之前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(∩_∩)
卸载方法:http://blog.csdn.net/w13770269691/article/details/50497827