How To Set Up NodeJs And Npm On Linux

  1. Get the installation script. Replace 6.x with the correct version string.
cd ~ curl -sL -o
  1. Run the script under sudo.
sudo bash
  1. Install the Node.js package, which contains npm as well. You don't need to install npm separately.
sudo apt-get install nodejs
  1. Install the build-essential package for some npm packages to work.
sudo apt-get install build-essential
  1. Update npm
npm install npm@latest -g
  1. Verify that you are running node v4.x.x or higher and npm 3.x.x or higher.
node -v 
npm -v
  1. Done.


Popular posts from this blog

How To Set Up Quasar v0.14 On A Laravel+Vue Framework

How To Set Up Quasar v0.13 On A Laravel(5.4)+Vue Framework

How To Fix Random Disappearing Of HTML Elements On iPhone/iPad