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. Add nvm init script to shell rc file
    # bash
    echo 'source /usr/share/nvm/init-nvm.sh' >> ~/.bashrc
    
    # bashzsh
    echo 'source /usr/share/nvm/init-nvm.sh' >> ~/.zshrc
    # zsh
    
  4. Install Node.js, e.g. versionNode 12v12
    nvm install 12