Skip to content

Instantly share code, notes, and snippets.

@ShadSterling
Created May 17, 2018 13:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ShadSterling/4543cd94d2ea458d8b3e8173f517e493 to your computer and use it in GitHub Desktop.
Save ShadSterling/4543cd94d2ea458d8b3e8173f517e493 to your computer and use it in GitHub Desktop.
`npm audit` fails on a package with a single dependency on NPM 6
0 info it worked if it ends with ok
1 verbose cli [ '/opt/local/bin/node', '/opt/local/bin/npm', 'run', 'audit' ]
2 info using npm@5.8.0
3 info using node@v8.11.2
4 verbose run-script [ 'preaudit', 'audit', 'postaudit' ]
5 info lifecycle npm-issue@1.0.0~preaudit: npm-issue@1.0.0
6 info lifecycle npm-issue@1.0.0~audit: npm-issue@1.0.0
7 verbose lifecycle npm-issue@1.0.0~audit: unsafe-perm in lifecycle true
8 verbose lifecycle npm-issue@1.0.0~audit: PATH: /opt/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/ssterling3/Documents/2018/IIT/Repos/npm-issue/node_modules/.bin:/Users/ssterling3/bin/mac:/Users/ssterling3/bin:/opt/local/bin:/opt/local/sbin:/opt/local/libexec/gnubin/:/Users/ssterling3/.npm-global/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/MacGPG2/bin:/usr/local/munki:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Users/ssterling3/bin/mac:/Users/ssterling3/bin:/opt/local/bin:/opt/local/sbin:/opt/local/libexec/gnubin/:/Users/ssterling3/.npm-global/bin
9 verbose lifecycle npm-issue@1.0.0~audit: CWD: /Users/ssterling3/Documents/2018/IIT/Repos/npm-issue
10 silly lifecycle npm-issue@1.0.0~audit: Args: [ '-c', 'npm audit' ]
11 silly lifecycle npm-issue@1.0.0~audit: Returned: code: 1 signal: null
12 info lifecycle npm-issue@1.0.0~audit: Failed to exec audit script
13 verbose stack Error: npm-issue@1.0.0 audit: `npm audit`
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.<anonymous> (/opt/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:283:16)
13 verbose stack at emitTwo (events.js:126:13)
13 verbose stack at EventEmitter.emit (events.js:214:7)
13 verbose stack at ChildProcess.<anonymous> (/opt/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at emitTwo (events.js:126:13)
13 verbose stack at ChildProcess.emit (events.js:214:7)
13 verbose stack at maybeClose (internal/child_process.js:925:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
14 verbose pkgid npm-issue@1.0.0
15 verbose cwd /Users/ssterling3/Documents/2018/IIT/Repos/npm-issue
16 verbose Darwin 17.5.0
17 verbose argv "/opt/local/bin/node" "/opt/local/bin/npm" "run" "audit"
18 verbose node v8.11.2
19 verbose npm v5.8.0
20 error code ELIFECYCLE
21 error errno 1
22 error npm-issue@1.0.0 audit: `npm audit`
22 error Exit status 1
23 error Failed at the npm-issue@1.0.0 audit script.
23 error This is probably not a problem with npm. 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