nvm is not compatible with the npm config “prefix” option:

Delete and Reset the prefix

$ npm config delete prefix 
$ npm config set prefix $NVM_DIR/versions/node/v6.11.1

Note: Change the version number with the one indicated in the error message.

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.11.1 –silent” to unset it.


Credits to @gabfiocchi on Github – “You need to overwrite nvm prefix”

Leave a Comment