How To Set Up NodeJs And Npm On Linux



Steps
  1. Get the installation script. Replace 6.x with the correct version string.
cd ~ curl -sL https://deb.nodesource.com/setup_6.x -o nodesource_setup.sh
  1. Run the script under sudo.
sudo bash nodesource_setup.sh
  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.

Comments

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