Last active
September 6, 2016 07:09
-
-
Save mort3za/878dba28b6b45228b6b5 to your computer and use it in GitHub Desktop.
Installing bower, gulp, npm, nodejs on ubuntu. #linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 andrm -rf node npm
in that folder to remove old npm symlinks.