Skip to content

Instantly share code, notes, and snippets.

@bend
Created February 11, 2019 13:37
Show Gist options
  • Save bend/6687c04d495c74f02be590da9bd43155 to your computer and use it in GitHub Desktop.
Save bend/6687c04d495c74f02be590da9bd43155 to your computer and use it in GitHub Desktop.
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'run', 'production' ]
2 info using npm@3.5.2
3 info using node@v8.10.0
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/share/npm/bin/node-gyp-bin:/home/ben/projects/viewer/node_modules/.bin:/home/ben/projects/go/bin:/home
/ben/local/usr/bin:/home/ben/local/bin:/home/ben/.oh-my-zsh/scripts:/root/.gem/ruby/1.9.1/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbi
n:/usr/texbin:/usr/X11/bin:/usr/X11R6/bin:/home/benoit/.ccache/bin:/home/ben/local/letsencrypt/:/home/ben/local/bin/eclipse:/home/ben/perl5/bin:/ho
me/benoit/local/usr/bin:/home/benoit/local/bin:/home/benoit/.oh-my-zsh/scripts:/root/.gem/ruby/1.9.1/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/b
in:/usr/sbin:/usr/texbin:/usr/X11/bin:/usr/X11R6/bin:/home/benoit/.ccache/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/gam
es:/usr/local/games
10 verbose lifecycle @~production: CWD: /home/ben/projects/viewer
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 silly lifecycle @~production: Returned: code: 2 signal: null
13 info lifecycle @~production: Failed to exec production script
14 verbose stack Error: @ production: `cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_mo
dules/laravel-mix/setup/webpack.config.js`
14 verbose stack Exit status 2
14 verbose stack at EventEmitter.<anonymous> (/usr/share/npm/lib/utils/lifecycle.js:232:16)
14 verbose stack at emitTwo (events.js:126:13)
14 verbose stack at EventEmitter.emit (events.js:214:7)
14 verbose stack at ChildProcess.<anonymous> (/usr/share/npm/lib/utils/spawn.js:24:14)
14 verbose stack at emitTwo (events.js:126:13)
14 verbose stack at ChildProcess.emit (events.js:214:7)
14 verbose stack at maybeClose (internal/child_process.js:925:16)
14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
15 verbose pkgid @
16 verbose cwd /home/ben/projects/viewer
17 error Linux 4.15.0-43-generic
18 error argv "/usr/bin/node" "/usr/bin/npm" "run" "production"
19 error node v8.10.0
20 error npm v3.5.2
21 error code ELIFECYCLE
22 error @ production: `cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-m
ix/setup/webpack.config.js`
22 error Exit status 2
23 error Failed at the @ production script 'cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=no
de_modules/laravel-mix/setup/webpack.config.js'.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/we
bpack.config.js
23 error You can get information on how to open an issue for this project with:
23 error npm bugs
23 error Or if that isn't available, you can get their info via:
23 error npm owner ls
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment