Reputation: 7428
I've recently setup gulp but although it appears to be (partially) working in my IDE it doesn't appear to work in the command line.
my package.json file is:
{
"name": "project",
"version": "0.1.0",
"dependencies": {},
"devDependencies": {
"browser-sync": "^2.14.0",
"del": "^2.2.2",
"gulp": "^3.9.1",
"gulp-autoprefixer": "^3.1.1",
"gulp-concat": "^2.6.0",
"gulp-cssnano": "^2.1.2",
"gulp-imagemin": "^3.0.3",
"gulp-less": "^3.1.0",
"gulp-pixrem": "^1.0.0",
"gulp-plumber": "^1.1.0",
"gulp-rename": "^1.2.2",
"gulp-uglify": "^2.0.0",
"gulp-util": "^3.0.7",
"run-sequence": "^1.2.2"
},
"engines": {
"node": ">=0.8.0"
}
}
These have been installed with npm install
(but note I haven't installed gulp globally (npm is installed via brew on OSX))
running which gulp
however I get gulp not found?
Upvotes: 2
Views: 5787
Reputation: 4385
If you can install gulp globally, do it
npm install -g gulp
(may require sudo
- use sudo, or google "fix npm permissions")
If you can't install gulp globally, there are some solutions here:
Using gulp without global gulp //edit: and without linking to the bin js file
Upvotes: 8