1

I have some trouble with gulp. I use laravel/elixir which has gulp as its dependency. I did the steps like here Can't get Gulp to run: cannot find module 'gulp-util' but still no success. Actually the gulp-util files are inside the node_modules folder... enter image description here

enter image description here

Anyway I'm using Xubuntu 17.04 64bit if it counts.

HovaMegy
  • 31
  • 1
  • 4
  • 1
    Have you tried updating nodejs and npm, then dumping the `node_modules` directory, and reinstalling with `npm install`? – Emile Bergeron Jun 06 '17 at 20:12
  • Possible duplicate of [Can't get Gulp to run: cannot find module 'gulp-util'](https://stackoverflow.com/questions/21406738/cant-get-gulp-to-run-cannot-find-module-gulp-util) – dskrvk Oct 27 '17 at 21:30

1 Answers1

6

I had the same problem, and tried almost everything. But then I realized that the error does not point to the local gulp in the respective project but to the global one (/usr/lib/nodejs/gulp/...).

What solved the problem for me was to update that respective gulp:

sudo npm install -g gulp

I am not sure if it is in general correct that the global gulp is used or if the one of the project should be used instead. But at least for now I was able to solve the problem with that.

Hope it helps.

spinner
  • 61
  • 3