Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

steeve's avatar

Error Says "No gulp file found"

I recently installed Laravel a few days ago and when I go to run gulp, I get the message:

[21:30:06] No gulpfile found

I have gulpfile.js, so what are they talking about?

0 likes
8 replies
steeve's avatar

Yes, zoransa, I did. But maybe I installed it in the wrong directory?

steeve's avatar

Is the correct directory to install npm my application root directory, or is it on my VM?

jekinney's avatar
Level 47

@steeve

If your using a vm and ssh into your directory and run npm install that should be the way you also run gulp. If you just cd into your app directory and run npm install that is where you run gulp.

1 like
steeve's avatar

Thanks for the tip zoransa. I did install npm in the wrong directory. I did it in the root of my vm, not the root of my app in the vm. Once I did that, gulp worked.

priyansj's avatar

Hi, I have the same issue. I am still not able to use Gulp. In laravel 5.4 i do not see any gulp file. only a webpack.mix.js file is available in the root dir. can you help me. thanks

joel_birch's avatar

Gulp is not needed (nor included) in 5.4. You can run the npm scripts listed in package.json. Eg: npm run watch.

6 likes
perezale's avatar

@joel_birch As you mentioned, on newer versions gulp is not needed anymore.

I tryed to npm run watch (and run dev) but I'm getting this error, I must be missing something, I followed the latest doc in 5.4 for Laravel Mix (former Elixir --> Careful for those looking at elixir documentation still ;( ). The error message:

> node node_modules/cross-env/bin/cross-env.js NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js

module.js:471
    throw err;
    ^

Error: Cannot find module '/home/vagrant/webpack.mix'

As you can see, I'm using vagrant homestead on a Windows 10 host. I allowed symlink by running homestead as administrator and (just in case) created node_modules folder as a symlink to /home/vagrant/node_modules/

Thanks in advance for any tips on this.

Please or to participate in this conversation.