If you happen to have previous installations, uninstall them before proceeding any further.
-
Do a manual install of NVM from here.
Currently the instructions are:
export NVM_DIR="$HOME/.nvm" && ( git clone https://github.com/nvm-sh/nvm.git "$NVM_DIR" cd "$NVM_DIR" git checkout `git describe --abbrev=0 --tags --match "v[0-9]*" $(git rev-list --tags --max-count=1)` ) && \. "$NVM_DIR/nvm.sh"
-
Make Changes to
/etc/profile
by adding:export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
-
Verify your installation:
command -v nvm
It should output
nvm
-
Install a node version. Preferably, a long term stable one and not the latest node version. Latest version is more likely to be buggy.
DO:
nvm install --lts
and NOT:nvm install node
-
Verify Node and NPM installations:
node --version
andnpm --version
-
Download any node extension pack from VSCode marketplace