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)