A quick guide for setting up NPM and Gulp on a Mac.
Install node.js and npm
Download and install the node installation from nodejs.org.
Install gulp globally
$ sudo npm install -g gulp
Install gulp in a project
From the project root:
$ npm init $ npm install gulp --save-dev
You should now have a
package.json file in your project root that lists gulp as a dependency and a
node_modules directory containing gulp.