npm install 不能安装模块
- 先卸载npm,然后再重新安装
sudo npm uninstall npm -g
如果上面卸载不了,则进入到npm的安装目录(which npm):
sudo make uninstall
- 到 https://npmjs.com/install.sh下载,执行就可以了
sudo npm uninstall npm -g
如果上面卸载不了,则进入到npm的安装目录(which npm):
sudo make uninstall
转载于:https://www.cnblogs.com/daihanlong/p/5535462.html