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源码学习(二)
- 下一篇: 宏杉科技:存储创新之路需要决心与耐心