Skip to content

Instantly share code, notes, and snippets.

@miladvafaeifard
Created October 22, 2021 09:13
Show Gist options
  • Save miladvafaeifard/4ffe55fd2e69ab9e5c77eee22c034183 to your computer and use it in GitHub Desktop.
Save miladvafaeifard/4ffe55fd2e69ab9e5c77eee22c034183 to your computer and use it in GitHub Desktop.
install node on wsl
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
echo 'export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm' >> ~/.profile
source ~/.profile
nvm -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment