Skip to content

Instantly share code, notes, and snippets.

@sbmadhav
Created October 10, 2020 01:05
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 sbmadhav/f4462b62e5a2e5f7cbd40e947c90224a to your computer and use it in GitHub Desktop.
Save sbmadhav/f4462b62e5a2e5f7cbd40e947c90224a to your computer and use it in GitHub Desktop.
Errors I have encountered and resolved

Errros I have encountered and resolved

NVM and VSCode

VSCode would throw error like below:

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 v8.8.1 --silent` to unset it.

This is because: you might not have a system node installed, but somehow you have a system npm at /usr/local/bin/npm or vice versa. Both need to be there. If you remove it manually, it should start working. Reference: nvm-sh/nvm#1647 (comment)

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