nvm is not compatible with the npm config “prefix” option: currently set to “/usr/local” Run `npm config delete prefix` or `nvm use –delete-prefix v6.12.2 –silent` to unset it.

 Nodejs, nvm  nvm is not compatible with the npm config “prefix” option: currently set to “/usr/local” Run `npm config delete prefix` or `nvm use –delete-prefix v6.12.2 –silent` to unset it.已关闭评论
11月 072019
 

mac安装了下homebrew,运行source .bash_profile时出现了下面提示:
nvm is not compatible with the npm config “prefix” option: currently set to “/usr/local” Run `npm config delete prefix` or `nvm use –delete-prefix v6.12.2 –silent` to unset it.

可以通过以下命令解决:
$ npm config delete prefix
$ npm config set prefix $NVM_DIR/versions/node/v6.12.2

DONE!