Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/nodejs', '/usr/bin/npm', 'run', 'build-main' ]
2 info using npm@4.5.0
3 info using node@v7.8.0
4 verbose run-script [ 'prebuild-main', 'build-main', 'postbuild-main' ]
5 info lifecycle myappname@0.1.0~prebuild-main: myappname@0.1.0
6 silly lifecycle myappname@0.1.0~prebuild-main: no script for prebuild-main, continuing
7 info lifecycle myappname@0.1.0~build-main: myappname@0.1.0
8 verbose lifecycle myappname@0.1.0~build-main: unsafe-perm in lifecycle true
9 verbose lifecycle myappname@0.1.0~build-main: PATH: /usr/lib/node_modules/npm/bin/node-gyp-bin:/home/william/Projects/myappname/node_modules/.bin:/home/william/Projects/myappname/node_modules/.bin:/home/william/.config/yarn/link/node_modules/.bin:/home/william/Projects/myappname/node_modules/.bin:/home/william/.config/yarn/link/node_modules/.bin:/usr/share/yarn/bin/node-gyp-bin:/home/william/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin:/home/william/.npm-global/bin:/opt/android-sdk/platform-tools:/opt/apache-maven/bin
10 verbose lifecycle myappname@0.1.0~build-main: CWD: /home/william/Projects/myappname
11 silly lifecycle myappname@0.1.0~build-main: Args: [ '-c',
11 silly lifecycle 'cross-env NODE_ENV=production node --trace-warnings -r babel-register ./node_modules/webpack/bin/webpack --config webpack.config.main.prod.js --progress --profile --colors' ]
12 silly lifecycle myappname@0.1.0~build-main: Returned: code: 2 signal: null
13 info lifecycle myappname@0.1.0~build-main: Failed to exec build-main script
14 verbose stack Error: myappname@0.1.0 build-main: `cross-env NODE_ENV=production node --trace-warnings -r babel-register ./node_modules/webpack/bin/webpack --config webpack.config.main.prod.js --progress --profile --colors`
14 verbose stack Exit status 2
14 verbose stack at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/lib/utils/lifecycle.js:279:16)
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at EventEmitter.emit (events.js:194:7)
14 verbose stack at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/lib/utils/spawn.js:40:14)
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at ChildProcess.emit (events.js:194:7)
14 verbose stack at maybeClose (internal/child_process.js:899:16)
14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
15 verbose pkgid myappname@0.1.0
16 verbose cwd /home/william/Projects/myappname
17 verbose Linux 4.4.0-72-generic
18 verbose argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "build-main"
19 verbose node v7.8.0
20 verbose npm v4.5.0
21 error code ELIFECYCLE
22 error errno 2
23 error myappname@0.1.0 build-main: `cross-env NODE_ENV=production node --trace-warnings -r babel-register ./node_modules/webpack/bin/webpack --config webpack.config.main.prod.js --progress --profile --colors`
23 error Exit status 2
24 error Failed at the myappname@0.1.0 build-main script 'cross-env NODE_ENV=production node --trace-warnings -r babel-register ./node_modules/webpack/bin/webpack --config webpack.config.main.prod.js --progress --profile --colors'.
24 error Make sure you have the latest version of node.js and npm installed.
24 error If you do, this is most likely a problem with the myappname package,
24 error not with npm itself.
24 error Tell the author that this fails on your system:
24 error cross-env NODE_ENV=production node --trace-warnings -r babel-register ./node_modules/webpack/bin/webpack --config webpack.config.main.prod.js --progress --profile --colors
24 error You can get information on how to open an issue for this project with:
24 error npm bugs myappname
24 error Or if that isn't available, you can get their info via:
24 error npm owner ls myappname
24 error There is likely additional logging output above.
25 verbose exit [ 2, true ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.