vscode 遇到的迷之bug nvm is not compatible with the npm config prefix
生活随笔
收集整理的这篇文章主要介绍了
vscode 遇到的迷之bug nvm is not compatible with the npm config prefix
小编觉得挺不错的,现在分享给大家,帮大家做个参考.
mac升级系统后,发现每次打开vscode,在命令栏TERMINAL中都会出现不识别npm,把vscode重新安装后,还是不行。
最后,在万能的git上找到了解决方法,之前出错的原因使因为我曾经使用brew install node安装过node,而显示是使用nvm安装的node。只需要把之前的node删除掉,就可以了。
rm -R /usr/local/lib/node_modules/npm rm -R /usr/local/bin/npm /usr/local/lib/node_modules/npm/bin/npm-cli.js总结
以上是生活随笔为你收集整理的vscode 遇到的迷之bug nvm is not compatible with the npm config prefix的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: SocketServer源码学习(二)
- 下一篇: 宏杉科技:存储创新之路需要决心与耐心