username@machine:~/$ npm install npm@3.10.9 npm ERR! Linux 3.13.0-91-generic npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "npm@3.10.9"npm ERR! node v7.0.0 npm ERR! npm v3.10.8 npm ERR! code MODULE_NOT_FOUND npm ERR! Cannot find module 'internal/fs'npm ERR! npm ERR! If you need help, you may report this error at: npm ERR! <https://github.com/npm/npm/issues>
解决方案:
-
using "n" I switched back to the node version 6.9.1
n 6.9.1
-
installed lates npm
sudo npm -g install npm@next
-
switch back to node 7.2.0
n 7.2.0
-
everything works
本文转自xuzw13 51CTO博客,原文链接:http://blog.51cto.com/xuzhiwei/1882294,如需转载请自行联系原作者