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

coderego's avatar

Errors on Homestead / Windows 10

Hello,

I am unable to even begin work with a base install of Spark on homestead running atop a windows 10 install.

ErrorException in helpers.php line 582:
The Mix manifest does not exist. (View: /home/vagrant/Code/vwiki/resources/views/vendor/spark/layouts/app.blade.php) (View: /home/vagrant/Code/vwiki/resources/views/vendor/spark/layouts/app.blade.php)

I tried to run an npm update followed by npm run dev and I get this error:


npm ERR! Failed at the @ dev script 'cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js'.

Any thoughts?

Thank you

0 likes
7 replies
kakkeroth's avatar

Are you running the npm command in your windows environment or while inside the Homstead VM? Because you should be doing the latter.

coderego's avatar

SSH into homestead and running from there.

kakkeroth's avatar

Hmm, well that is good. Could you post the full debug log?

coderego's avatar
vagrant@homestead:~/.npm/_logs$ cat 2017-05-03T13_37_42_086Z-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/nodejs', '/usr/bin/npm', 'run', 'dev' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'predev', 'dev', 'postdev' ]
5 info lifecycle @~predev: @
6 silly lifecycle @~predev: no script for predev, continuing
7 info lifecycle @~dev: @
8 verbose lifecycle @~dev: unsafe-perm in lifecycle true
9 verbose lifecycle @~dev: PATH: /usr/lib/node_modules/npm/bin/node-gyp-bin:/home/vagrant/Code/vwiki/node_modules/.bin:/home/vagrant/.composer/vendor/bin:/home/vagrant/bin:/home/vagrant/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
10 verbose lifecycle @~dev: CWD: /home/vagrant/Code/vwiki
11 silly lifecycle @~dev: Args: [ '-c',
11 silly lifecycle   'cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js' ]
12 info lifecycle @~dev: Failed to exec dev script
13 verbose stack Error: @ dev: `cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js`
13 verbose stack spawn ENOENT
13 verbose stack     at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/lib/utils/spawn.js:33:16)
13 verbose stack     at emitTwo (events.js:106:13)
13 verbose stack     at ChildProcess.emit (events.js:191:7)
13 verbose stack     at maybeClose (internal/child_process.js:886:16)
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
14 verbose pkgid @
15 verbose cwd /home/vagrant/Code/vwiki
16 verbose Linux 4.4.0-66-generic
17 verbose argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "dev"
18 verbose node v6.10.2
19 verbose npm  v4.5.0
20 error file sh
21 error code ELIFECYCLE
22 error errno ENOENT
23 error syscall spawn
24 error @ dev: `cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js`
24 error spawn ENOENT
25 error Failed at the @ dev script 'cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js'.
25 error Make sure you have the latest version of node.js and npm installed.
25 error If you do, this is most likely a problem with the  package,
25 error not with npm itself.
25 error Tell the author that this fails on your system:
25 error     cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
25 error You can get information on how to open an issue for this project with:
25 error     npm bugs
25 error Or if that isn't available, you can get their info via:
25 error     npm owner ls
25 error There is likely additional logging output above.
26 verbose exit [ 1, true ]
kakkeroth's avatar

You could try the following:

Remove all inside your node_modules folder.

run npm install --no-bin-links ( If you get an ELIFECYCLE error, repeat until all is done, it means you got a timeout)

run npm run dev again

coderego's avatar

Attempted this, npm install ran without error. npm run dev did not.

npm ERR! @ dev: `cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the @ dev script 'cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js'.

This is frustrating as I am just attempting a clean install. No modification.

yinyanghouse's avatar

I am also developing a project on top of Windows 10. The problem in this case is Windows not giving npm the permissions it wants for the Homestead VM shared folder.

You will have to npm from Windows console at location, all other commands you can run through your homestead VM ssh. I hope this helps, because I beat my head against this issue for a fair bit of time before discovering the solution.

Please or to participate in this conversation.