gulpfile.js:
var gulp = require('gulp');
var console = require('console');
gulp.task('default', function() {
console.log('The "Gulp Default Task" is done.');
});
nodejs commands:
λ gulp
[17:17:48] Local gulp not found in ~\nodework\dyncss
[17:17:48] Try running: npm install gulp
$ (master) (dyncss@0.0.0)
λ npm install gulp --save-dev
C:\Users\TheStaabFamily\AppData\Roaming\npm\gulp -> C:\Users\TheStaabFamily\AppData\Roaming\npm\node_modules\gulp\bin\gulp.js
C:\Users\TheStaabFamily\AppData\Roaming\npm
└── gulp@3.9.0
$ (master) (dyncss@0.0.0)
λ gulp
[20:23:58] Local gulp not found in ~\nodework\dyncss
[20:23:59] Try running: npm install gulp
WTF? This is on Win7 x64. It took me quite awhile to install VStudio so node-gyp (a dependency of gulp) could build itself during the gulp install. I initially installed gulp with:
npm install -g gulp
Incidentally, my package.json is also not being updated by npm when I try to install gulp with the -D or --save-dev options. I am a new node user so please excuse if this question is too noobie. THANKS!!!