Skip to content
lucian voinea edited this page Jan 18, 2018 · 35 revisions

Node js

Uninstall node.js

sudo apt-get remove node
  • go to /usr/local/lib and delete any node and node_modules
  • go to /usr/local/include and delete any node and node_modules directory
  • check your Home directory for any "local" or "lib" or "include" folders, and delete any "node" or "node_modules" from there
  • go to /usr/local/bin and delete any node executable
  • remove: /usr/local/bin/npm
  • remove: /usr/local/share/man/man1/node.1
  • remove: /usr/local/lib/dtrace/node.d
  • execute: rm -rf /Users/[homedir]/.npm
sudo apt-get update
curl -sL https://deb.nodesource.com/setup | sudo bash -
sudo apt-get install nodejs


curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -
sudo apt-get install nodejs
curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -
sudo apt-get install nodejs

sudo apt-get install build-essential
npm uninstall -g gulp
sudo rm /usr/local/bin/gulp
sudo rm -rf /usr/local/lib/node_modules/gulp

cd /var/www/vhosts/dev/bin
sudo npm -g install npm@latest
sudo npm init
sudo npm install -g gulp-cli@latest
sudo npm install --save-dev gulp@next

sudo npm install --save-dev try-thread-sleep

sudo npm install --save-dev gulp-rename
sudo npm install --save-dev --unsafe-perm gulp-sass
sudo npm install --save-dev gulp-autoprefixer
sudo npm install --save-dev gulp-debug
sudp npm install --save-dev vinyl-paths
sudo npm install --save-dev gulp del

sudo npm install --save-dev gulp-babel
sudo npm install --save-dev gulp-rollup
#sudo npm install --save-dev necolas/normalize.css
sudo git clone -q git://github.com/necolas/normalize.css.git /var/www/vhosts/dev/bin/node_modules/normalize.css
npm outdated -g --depth=0

npm ls
npm outdated
npm update
sudo npm install npm -g
sudo npm list --depth=0
Clone this wiki locally