Skip to content

Instantly share code, notes, and snippets.

@diegopacheco
Created January 5, 2024 21:38
Show Gist options
  • Save diegopacheco/6e3ccb91d8859f153d58b4191aa964e0 to your computer and use it in GitHub Desktop.
Save diegopacheco/6e3ccb91d8859f153d58b4191aa964e0 to your computer and use it in GitHub Desktop.
nvm is not compatible with the npm config "prefix" option:

Error:

nvm is not compatible with the npm config "prefix" option:

Fix: add this 2 lines in your profile. vim ~/.zshrc

npm config delete prefix
npm config set prefix $NVM_DIR/versions/node/v21.5.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment