Level 53
Looks like the npm install was not completed before trying to run a task.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi,
I am trying to deploy Spark application to ElasticBeanstalk... Having some issues...
I am able to install Node but cant seem to get npm run production to work properly:
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'run', 'production' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'preproduction', 'production', 'postproduction' ]
5 info lifecycle @~preproduction: @
6 silly lifecycle @~preproduction: no script for preproduction, continuing
7 info lifecycle @~production: @
8 verbose lifecycle @~production: unsafe-perm in lifecycle true
9 verbose lifecycle @~production: PATH: /usr/lib/node_modules/npm/bin/node-gyp-bin:/var/app/ondeck/node_modules/.bin:/usr/bin
10 verbose lifecycle @~production: CWD: /var/app/ondeck
11 silly lifecycle @~production: Args: [ '-c',
11 silly lifecycle 'cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js' ]
12 info lifecycle @~production: Failed to exec production script
13 verbose stack Error: @ production: `cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js`
13 verbose stack spawn sh ENOENT
13 verbose stack at exports._errnoException (util.js:1020:11)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:197:32)
13 verbose stack at onErrorNT (internal/child_process.js:376:16)
13 verbose stack at _combinedTickCallback (internal/process/next_tick.js:80:11)
13 verbose stack at process._tickCallback (internal/process/next_tick.js:104:9)
14 verbose pkgid @
15 verbose cwd /var/app/ondeck
16 error Linux 4.9.32-15.41.amzn1.x86_64
17 error argv "/usr/bin/node" "/usr/bin/npm" "run" "production"
18 error node v6.12.0
19 error npm v3.10.10
20 error file sh
21 error path sh
22 error code ELIFECYCLE
23 error errno ENOENT
24 error syscall spawn sh
25 error @ production: `cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js`
25 error spawn sh ENOENT
26 error Failed at the @ production script 'cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js'.
26 error Make sure you have the latest version of node.js and npm installed.
26 error If you do, this is most likely a problem with the package,
26 error not with npm itself.
26 error Tell the author that this fails on your system:
26 error cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
26 error You can get information on how to open an issue for this project with:
26 error npm bugs
26 error Or if that isn't available, you can get their info via:
26 error npm owner ls
26 error There is likely additional logging output above.
27 verbose exit [ 1, true ]
Please or to participate in this conversation.