我正在try 运行另一个nvm
的NodeJS版本,但出现以下错误:
$ nvm use v4.2.4
nvm is not compatible with the npm config "prefix" option:
currently set to "/Users/z/.npm-global"
Run `npm config delete prefix` or `nvm use --delete-prefix v4.2.4` to unset it.
我特意设置了前缀以避免sudo npm
(参见https://docs.npmjs.com/getting-started/fixing-npm-permissions).
有没有办法在不丢失全球安装软件包前缀的情况下使用nvm
?