Last active
December 24, 2016 12:48
-
-
Save Thorium/b74c7e3a70e6d20bf705 to your computer and use it in GitHub Desktop.
Installation script: Bower and Gulp for JavaScript development
This file contains hidden or 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
#!/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 |
This file contains hidden or 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
#!/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 |
This file contains hidden or 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
@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. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sudo npm install npm -g
Might want to review that