Skip to content

Instantly share code, notes, and snippets.

@mort3za
Last active September 6, 2016 07:09
Show Gist options
  • Save mort3za/878dba28b6b45228b6b5 to your computer and use it in GitHub Desktop.
Save mort3za/878dba28b6b45228b6b5 to your computer and use it in GitHub Desktop.
Installing bower, gulp, npm, nodejs on ubuntu. #linux
# First install 'nodejs' (not node, and don't use apt install nodejs, because it's not latest version).
# https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions
curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
sudo apt-get install -y nodejs
# and then npm (if it's not installed automatically):
# https://rtcamp.com/tutorials/nodejs/node-js-npm-install-ubuntu/
# Then install bower and gulp with simple npm install command (with -g flag).
# For accessing bower in global space (or adding it to path) create a symbolic link:
# http://stackoverflow.com/questions/21491996/installing-bower-on-ubuntu
# Also for libsass, just install node-sass (both for global and local) by npm.
npm install node-sass
@mort3za
Copy link
Author

mort3za commented Sep 6, 2016

If node version is still 0.10 open synaptic and search for nodejs. If it's not installed, mark for installation.
Then run which node in terminal and rm -rf node npm in that folder to remove old npm symlinks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment