GankSt's avatar

Please help NPM install failed

Hi

I want to create new laravel project by ssh to laravel Homestead and run "laravel new myProject". Everything is fine except I can't see my gulpfile.js . I also run npm install and I got errors "npm WARN optional Skipping failed optional dependency /chokidar/fsevents: npm WARN notsup Not compatible with your operating system or architecture: [email protected] "

Anyone could help?

Thank you

Suphasit Thongniam

0 likes
3 replies
frezno's avatar
frezno
Best Answer
Level 36

I don't use Homestead and i don't know your OS etc., so in this case i can't be of much help.

But: New Laravel doesn't come with an gulpfile any more but with webpack.mix.js. There you include whatever is necessary for your project. JW has an Laracasts series on this as well:

https://laracasts.com/series/webpack-for-everyone

1 like
starmatt's avatar

You shouldn't ssh into homestead to create a new project, it's just weird haha. Create the project on your host OS, set up homestead and run npm install from your host OS as well !

1 like
GankSt's avatar

Thank you everyone. I see that gulpfile.js is missing , but I got webpack.mix.js instead. I'll study webpack maybe it's better than gulpfile.

PS. my OS is ubuntu 16.04

Please or to participate in this conversation.