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
相关文章
相关标签/搜索