【发布时间】:2019-07-01 08:23:18
【问题描述】:
nvm(Node Version Manager)用户经常在 VS Code 的集成终端中第一次看到这个错误:
nvm is not compatible with the npm config "prefix" option: currently set to "/usr/local"
Run `nvm use --delete-prefix v8.12.0 --silent` to unset it
我必须先找到旧的 npm 安装路径,然后在它之前运行“which npm”。
但是nvm初始化脚本在哪里以及如何在它之前运行“which npm”,只需在脚本开头添加一行?有没有其他方法可以解决这个问题?
【问题讨论】:
-
this 线程的解决方案对我来说很好。
标签: macos visual-studio-code nvm