-
Notifications
You must be signed in to change notification settings - Fork 2
Installing Necessary CLI Tools
This article is a short description on how to install key command line utilities that developers use everyday on Macintosh and Linux environments. The main CLI tools that will be shown are: Homebrew (Mac), Node and NPM, Bower, Gulp and Grunt.
Homebrew is 'The missing package manager for OS X'. It is a great tool for downloading and installing packages straight from your command line. This is not needed on Linux distributions because they already have package managers installed by default such as apt-get
or pacman
. To install Homebrew, simply paste the following command in your terminal:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
NPM
, or Node Package Manager, is another useful package manager for downloading mostly web tools. Downloading NPM
will also install the Node.js framework.
- Using
Homebrew
type:brew install node
andNPM
should have been installed.
- Using
apt-get
first type:curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
, thensudo apt-get install nodejs
- Using
pacman
type:pacman -S nodejs npm
- Using
yum
type:sudo yum install nodejs npm
Bower is a popular package manager that allows you to install front-end libraries. You can install it on Linux and Macintosh systems using npm
with the following command:
-
npm install bower
(Same command for both Linux and OS X)
Gulp
is a framework and CLI tool that makes development faster and more enjoyable by automating tasks developers find themselves doing over, and over again. Also, you can install Gulp
through npm
:
npm install --save-dev gulp
Grunt
is another popular automation tool similar to Gulp
. To install it, use npm
again:
npm install -g grunt-cli
And that's that! With these tools your development process and content will be enjoyable and efficient. As you can see, the main tool to install is npm
and it allows you to install many other great web oriented CLI tools. Happy Hacking! 👍
Learn to code and help nonprofits. Join our open source community in 15 seconds at http://freecodecamp.com
Follow our Medium blog
Follow Quincy on Quora
Follow us on Twitter
Like us on Facebook
And be sure to click the "Star" button in the upper right of this page.
New to Free Code Camp?
JS Concepts
JS Language Reference
- arguments
- Array.prototype.filter
- Array.prototype.indexOf
- Array.prototype.map
- Array.prototype.pop
- Array.prototype.push
- Array.prototype.shift
- Array.prototype.slice
- Array.prototype.some
- Array.prototype.toString
- Boolean
- for loop
- for..in loop
- for..of loop
- String.prototype.split
- String.prototype.toLowerCase
- String.prototype.toUpperCase
- undefined
Other Links