I have been trying to setup an angular js project with yo, grunt and generator-gulp-angular. Although I install all packages, gulp comand is not found, however it works if I go inside node_modules.
This code will explain my issue:
$ npm -v
# 2.5.1
$ npm install -g yo
$ npm install -g generator-gulp-angular
$ mkdir client && cd $_
$ yo gulp-angular ng_demo
$ gulp serve
# command not found
$ node_modules/gulp/bin/gulp.js serve
# works
I am using zsh. What may be going wrong?
Check that you installed gulp globally:
npm install -g gulp
Another idea is to add scripts
to your package.json file along the lines of:
{
"name": "testing-app",
"version": "0.9",
"scripts": {
"gulp": "gulp",
"serve": "gulp serve"
}
}
Then use npm run serve
...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With