Skip to main content

Install Node.js Development Environment

  1. Install git
    sudo pacman -S git
    
  2. Install Visual Studio Code and nvm from AUR
    yay -S visual-studio-code-bin nvm
    
  3. InstallAdd Nodenvm Versioninit Managerscript usingto curlshell orrc wget, whichever is availablefile
    curlecho -o-'source https:/usr/share/nvm/init-nvm.sh' >> ~/raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh.bashrc  |# bash
    wgetecho -qO-'source https:/usr/share/nvm/init-nvm.sh' >> ~/raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh.zshrc   |# bashzsh
    
  4. Install Node.js, e.g. version 12
    nvm install 12