Skip to content

Instantly share code, notes, and snippets.

@Beyarz
Last active March 18, 2020 18:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Beyarz/d55a0d2f3802127a9dd4b84bc11893b9 to your computer and use it in GitHub Desktop.
Save Beyarz/d55a0d2f3802127a9dd4b84bc11893b9 to your computer and use it in GitHub Desktop.
nvm is not compatible with the npm config “prefix” option.

Delete and reset the prefix

npm config delete prefix

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

npm config set prefix $NVM_DIR/versions/node/v12.8.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment