Please help!!
Mix installs fine on my home computer. When I try to install on my server, I keep getting the same error again and again - on two different (shared) hosts hostgator & bluehost.
nvm and node seem to install fine.
npm -v
6.1.0
node -v
v10.5.0
php artisan -V
Laravel Framework 5.6.26
When I do an 'npm run dev', I get an error that seems to be thrown by Mix.
cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
node[2822]: pthread_create: Resource temporarily unavailable
events.js:167
throw er; // Unhandled 'error' event
^
Error: spawn node_modules/webpack/bin/webpack.js EAGAIN
at Process.ChildProcess._handle.onexit (internal/child_process.js:229:19)
at onErrorNT (internal/child_process.js:406:16)
at process._tickCallback (internal/process/next_tick.js:63:19)
at Function.Module.runMain (internal/modules/cjs/loader.js:746:11)
at startup (internal/bootstrap/node.js:240:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:564:3)
Emitted 'error' event at:
at Process.ChildProcess._handle.onexit (internal/child_process.js:235:12)
at onErrorNT (internal/child_process.js:406:16)
[... lines matching original stack trace ...]
at bootstrapNodeJSCore (internal/bootstrap/node.js:564:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ development: 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! Exit status 1
npm ERR!
npm ERR! Failed at the @ development script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
[Indeed I've cleared npm caches and tried multiple fresh installs. This is from a complete fresh install of laravel and node].
From what I have researched so far (which may or may not be relevant):
-- [email protected]-- [email protected]
-- [email protected]-- [email protected]
-- [email protected]-- [email protected]
-- [email protected]-- [email protected]
I'll appreciate any and all help.
Thanks