Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot install and run gulp via npm

I am trying to install gulp via npm so that I can run my project.

As far as I can tell, all I need to do is run "npm install gulp" from the command line of my project location like so :

enter image description here

However it doesn't seem to work, because if I run "gulp" from the command line nothing happens.

enter image description here

In my package.json file I have these dependencies :

  "devDependencies": {
    "autoprefixer-stylus": "^0.7.1",
    "browser-sync": "^2.8.2",
    "gulp": "^3.9.0",
    "gulp-cache": "^0.3.0",
    "gulp-concat": "^2.6.0",
    "gulp-if": "^1.2.5",
    "gulp-imagemin": "^2.3.0",
    "gulp-minify-html": "^1.0.4",
    "gulp-nunjucks-html": "^1.2.2",
    "gulp-order": "^1.1.1",
    "gulp-plumber": "^1.0.1",
    "gulp-stylus": "^2.0.6",
    "gulp-uglify": "^1.2.0",
    "gulp-util": "^3.0.6",
    "jeet": "^6.1.2",
    "kouto-swiss": "^0.11.13",
    "minimist": "^1.1.3",
    "rupture": "^0.6.1"
  },

Is there some kind of conflict happening with my package.json file?

If I run "npm install grunt" from an empty directory I get this :

enter image description here

Sorry, I'm very new to npm, grunt, gulp etc.. :(

like image 662
Oliver Watkins Avatar asked Jan 17 '26 22:01

Oliver Watkins


2 Answers

You need to install gulp globally too:

npm -g install gulp
like image 78
Merott Avatar answered Jan 20 '26 12:01

Merott


Install globally and make sure it is in your path. here is more info -> https://stackoverflow.com/a/24042936/173234

like image 27
Christophe Avatar answered Jan 20 '26 13:01

Christophe