Skip to content

Instantly share code, notes, and snippets.

@Thorium
Last active December 24, 2016 12:48
Show Gist options
  • Save Thorium/b74c7e3a70e6d20bf705 to your computer and use it in GitHub Desktop.
Save Thorium/b74c7e3a70e6d20bf705 to your computer and use it in GitHub Desktop.
Installation script: Bower and Gulp for JavaScript development
#!/bin/bash
# Mac version
# Install Homebrew package manager:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update
# Install Node.js and npm
brew install node
npm install -g npm
# Install Bower and gulp
npm install -g bower
npm install -g gulp
#!/bin/bash
# Ubuntu version
# Install Node.js and npm
sudo apt-get update
sudo apt-get install nodejs
sudo apt-get install npm
sudo npm install npm -g
# Install Bower and gulp
sudo npm install bower -g
sudo npm install gulp -g
@echo off
rem Windows version
echo Installing Chockolatey package manager:
@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin
echo Installing NodeJs and npm:
choco install nodejs -y
call "%ProgramFiles%\nodejs\npm" install -g npm
echo Installing Bower and gulp:
call "%ProgramFiles%\nodejs\npm" install -g bower
call "%ProgramFiles%\nodejs\npm" install -g gulp
echo Done.
@sifex
Copy link

sifex commented Dec 24, 2016

sudo npm install npm -g

Might want to review that

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