Skip to content

Instantly share code, notes, and snippets.

@rherrick
Created March 28, 2019 18:48
Show Gist options
  • Save rherrick/796389d50da62a1238a2ac7b2556fa2b to your computer and use it in GitHub Desktop.
Save rherrick/796389d50da62a1238a2ac7b2556fa2b to your computer and use it in GitHub Desktop.
Failure when launching test node app
0 info it worked if it ends with ok
1 verbose cli [ '/Users/username/.nvm/versions/node/v10.15.3/bin/node',
1 verbose cli '/Users/username/.nvm/versions/node/v10.15.3/bin/npm',
1 verbose cli 'run',
1 verbose cli 'dev' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'predev', 'dev', 'postdev' ]
5 info lifecycle @~predev: @
6 info lifecycle @~dev: @
7 verbose lifecycle @~dev: unsafe-perm in lifecycle true
8 verbose lifecycle @~dev: PATH: /Users/username/.nvm/versions/node/v10.15.3/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/username/Development/XNAT/Tools/Clients/XNAT-App/demo-ci-cd/node_modules/.bin:/Users/username/.nvm/versions/node/v10.15.3/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/username/Development/XNAT/Tools/Clients/XNAT-App/demo-ci-cd/node_modules/.bin:/Users/username/.nvm/versions/node/v10.15.3/bin:/Users/username/.sdkman/candidates/visualvm/current/bin:/Users/username/.sdkman/candidates/springboot/current/bin:/Users/username/.sdkman/candidates/scala/current/bin:/Users/username/.sdkman/candidates/sbt/current/bin:/Users/username/.sdkman/candidates/micronaut/current/bin:/Users/username/.sdkman/candidates/kotlin/current/bin:/Users/username/.sdkman/candidates/java/current/bin:/Users/username/.sdkman/candidates/groovy/current/bin:/Users/username/.sdkman/candidates/grails/current/bin:/Users/username/.sdkman/candidates/gradle/current/bin:/Users/username/bin:/usr/local/opt/openssl/bin:/usr/local/sbin:/Applications/Araxis Merge.app/Contents/Utilities:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware Fusion.app/Contents/Public:/usr/local/share/dotnet:/usr/local/go/bin:/usr/local/MacGPG2/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Applications/Wireshark.app/Contents/MacOS:/Users/username/.antigen/bundles/robbyrussell/oh-my-zsh/lib:/Users/username/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/command-not-found:/Users/username/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/common-aliases:/Users/username/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/git:/Users/username/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/git-extras:/Users/username/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/git-flow:/Users/username/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/gradle:/Users/username/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/history:/Users/username/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/mvn:/Users/username/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/vagrant:/Users/username/.antigen/bundles/zsh-users/zsh-syntax-highlighting:/Users/username/.antigen/bundles/zsh-users/zsh-completions/src:/Users/username/.antigen/bundles/zsh-users/zsh-history-substring-search
9 verbose lifecycle @~dev: CWD: /Users/username/Development/XNAT/Tools/Clients/XNAT-App/demo-ci-cd
10 silly lifecycle @~dev: Args: [ '-c',
10 silly lifecycle 'webpack-dev-server --content-base=./src/ --inline --hot' ]
11 silly lifecycle @~dev: Returned: code: 1 signal: null
12 info lifecycle @~dev: Failed to exec dev script
13 verbose stack Error: @ dev: `webpack-dev-server --content-base=./src/ --inline --hot`
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.<anonymous> (/Users/username/.nvm/versions/node/v10.15.3/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)
13 verbose stack at EventEmitter.emit (events.js:189:13)
13 verbose stack at ChildProcess.<anonymous> (/Users/username/.nvm/versions/node/v10.15.3/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:189:13)
13 verbose stack at maybeClose (internal/child_process.js:970:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
14 verbose pkgid @
15 verbose cwd /Users/username/Development/XNAT/Tools/Clients/XNAT-App/demo-ci-cd
16 verbose Darwin 17.7.0
17 verbose argv "/Users/username/.nvm/versions/node/v10.15.3/bin/node" "/Users/username/.nvm/versions/node/v10.15.3/bin/npm" "run" "dev"
18 verbose node v10.15.3
19 verbose npm v6.4.1
20 error code ELIFECYCLE
21 error errno 1
22 error @ dev: `webpack-dev-server --content-base=./src/ --inline --hot`
22 error Exit status 1
23 error Failed at the @ dev script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
0 info it worked if it ends with ok
1 verbose cli [ '/Users/username/.nvm/versions/node/v10.15.3/bin/node',
1 verbose cli '/Users/username/.nvm/versions/node/v10.15.3/bin/npm',
1 verbose cli 'start' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle @~prestart: @
6 info lifecycle @~start: @
7 verbose lifecycle @~start: unsafe-perm in lifecycle true
8 verbose lifecycle @~start: PATH: /Users/username/.nvm/versions/node/v10.15.3/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/username/Development/XNAT/Tools/Clients/XNAT-App/demo-ci-cd/node_modules/.bin:/Users/username/.nvm/versions/node/v10.15.3/bin:/Users/username/.sdkman/candidates/visualvm/current/bin:/Users/username/.sdkman/candidates/springboot/current/bin:/Users/username/.sdkman/candidates/scala/current/bin:/Users/username/.sdkman/candidates/sbt/current/bin:/Users/username/.sdkman/candidates/micronaut/current/bin:/Users/username/.sdkman/candidates/kotlin/current/bin:/Users/username/.sdkman/candidates/java/current/bin:/Users/username/.sdkman/candidates/groovy/current/bin:/Users/username/.sdkman/candidates/grails/current/bin:/Users/username/.sdkman/candidates/gradle/current/bin:/Users/username/bin:/usr/local/opt/openssl/bin:/usr/local/sbin:/Applications/Araxis Merge.app/Contents/Utilities:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware Fusion.app/Contents/Public:/usr/local/share/dotnet:/usr/local/go/bin:/usr/local/MacGPG2/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Applications/Wireshark.app/Contents/MacOS:/Users/username/.antigen/bundles/robbyrussell/oh-my-zsh/lib:/Users/username/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/command-not-found:/Users/username/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/common-aliases:/Users/username/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/git:/Users/username/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/git-extras:/Users/username/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/git-flow:/Users/username/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/gradle:/Users/username/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/history:/Users/username/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/mvn:/Users/username/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/vagrant:/Users/username/.antigen/bundles/zsh-users/zsh-syntax-highlighting:/Users/username/.antigen/bundles/zsh-users/zsh-completions/src:/Users/username/.antigen/bundles/zsh-users/zsh-history-substring-search
9 verbose lifecycle @~start: CWD: /Users/username/Development/XNAT/Tools/Clients/XNAT-App/demo-ci-cd
10 silly lifecycle @~start: Args: [ '-c', 'npm run dev' ]
11 silly lifecycle @~start: Returned: code: 1 signal: null
12 info lifecycle @~start: Failed to exec start script
13 verbose stack Error: @ start: `npm run dev`
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.<anonymous> (/Users/username/.nvm/versions/node/v10.15.3/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)
13 verbose stack at EventEmitter.emit (events.js:189:13)
13 verbose stack at ChildProcess.<anonymous> (/Users/username/.nvm/versions/node/v10.15.3/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:189:13)
13 verbose stack at maybeClose (internal/child_process.js:970:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
14 verbose pkgid @
15 verbose cwd /Users/username/Development/XNAT/Tools/Clients/XNAT-App/demo-ci-cd
16 verbose Darwin 17.7.0
17 verbose argv "/Users/username/.nvm/versions/node/v10.15.3/bin/node" "/Users/username/.nvm/versions/node/v10.15.3/bin/npm" "start"
18 verbose node v10.15.3
19 verbose npm v6.4.1
20 error code ELIFECYCLE
21 error errno 1
22 error @ start: `npm run dev`
22 error Exit status 1
23 error Failed at the @ start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
$ node --version
v10.15.3
$ git clone https://github.com/hzub/demo-ci-cd
Cloning into 'demo-ci-cd'...
remote: Enumerating objects: 23, done.
remote: Counting objects: 100% (23/23), done.
remote: Compressing objects: 100% (17/17), done.
remote: Total 23 (delta 5), reused 22 (delta 4), pack-reused 0
Unpacking objects: 100% (23/23), done.
$ cd demo-ci-cd
$ npm install
> [email protected] install /Users/rherrick/Development/XNAT/Tools/Clients/XNAT-App/demo-ci-cd/node_modules/fsevents
> node install
node-pre-gyp WARN Using needle for node-pre-gyp https download
[fsevents] Success: "/Users/rherrick/Development/XNAT/Tools/Clients/XNAT-App/demo-ci-cd/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node" is installed via remote
npm WARN demo-ci-cd No repository field.
npm WARN demo-ci-cd No license field.
added 618 packages from 332 contributors and audited 9071 packages in 6.027s
found 0 vulnerabilities
$ npm start
> @ start /Users/rherrick/Development/XNAT/Tools/Clients/XNAT-App/demo-ci-cd
> npm run dev
> @ dev /Users/rherrick/Development/XNAT/Tools/Clients/XNAT-App/demo-ci-cd
> webpack-dev-server --content-base=./src/ --inline --hot
/Users/rherrick/Development/XNAT/Tools/Clients/XNAT-App/demo-ci-cd/webpack.config.js:25
ENVIRONMENT: JSON.stringify(env.environment)
^
TypeError: Cannot read property 'environment' of undefined
at module.exports.env (/Users/rherrick/Development/XNAT/Tools/Clients/XNAT-App/demo-ci-cd/webpack.config.js:25:39)
at handleFunction (/Users/rherrick/Development/XNAT/Tools/Clients/XNAT-App/demo-ci-cd/node_modules/webpack-cli/bin/prepareOptions.js:21:13)
at prepareOptions (/Users/rherrick/Development/XNAT/Tools/Clients/XNAT-App/demo-ci-cd/node_modules/webpack-cli/bin/prepareOptions.js:9:5)
at requireConfig (/Users/rherrick/Development/XNAT/Tools/Clients/XNAT-App/demo-ci-cd/node_modules/webpack-cli/bin/convert-argv.js:118:14)
at /Users/rherrick/Development/XNAT/Tools/Clients/XNAT-App/demo-ci-cd/node_modules/webpack-cli/bin/convert-argv.js:124:17
at Array.forEach (<anonymous>)
at module.exports (/Users/rherrick/Development/XNAT/Tools/Clients/XNAT-App/demo-ci-cd/node_modules/webpack-cli/bin/convert-argv.js:122:15)
at Object.<anonymous> (/Users/rherrick/Development/XNAT/Tools/Clients/XNAT-App/demo-ci-cd/node_modules/webpack-dev-server/bin/webpack-dev-server.js:87:55)
at Module._compile (internal/modules/cjs/loader.js:701:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
at Module.load (internal/modules/cjs/loader.js:600:32)
at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
at Function.Module._load (internal/modules/cjs/loader.js:531:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:754:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ dev: `webpack-dev-server --content-base=./src/ --inline --hot`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ dev 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:
npm ERR! /Users/rherrick/.npm/_logs/2019-03-28T18_22_05_888Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ start: `npm run dev`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ start 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:
npm ERR! /Users/rherrick/.npm/_logs/2019-03-28T18_22_05_925Z-debug.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment