0 info it worked if it ends with ok 1 verbose cli [ '/opt/local/bin/node', '/opt/local/bin/npm', 'run', 'test' ] 2 info using npm@2.15.9 3 info using node@v4.4.7 4 verbose run-script [ 'pretest', 'test', 'posttest' ] 5 info pretest format-json-pretty@1.0.1 6 info test format-json-pretty@1.0.1 7 verbose unsafe-perm in lifecycle true 8 info format-json-pretty@1.0.1 Failed to exec test script 9 verbose stack Error: format-json-pretty@1.0.1 test: `mocha` 9 verbose stack Exit status 1 9 verbose stack at EventEmitter. (/opt/local/lib/node_modules/npm/lib/utils/lifecycle.js:217:16) 9 verbose stack at emitTwo (events.js:87:13) 9 verbose stack at EventEmitter.emit (events.js:172:7) 9 verbose stack at ChildProcess. (/opt/local/lib/node_modules/npm/lib/utils/spawn.js:24:14) 9 verbose stack at emitTwo (events.js:87:13) 9 verbose stack at ChildProcess.emit (events.js:172:7) 9 verbose stack at maybeClose (internal/child_process.js:827:16) 9 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5) 10 verbose pkgid format-json-pretty@1.0.1 11 verbose cwd /Users/mlm/repo/KMMacroList/nodejs/node_modules/format-json-pretty 12 error Darwin 15.6.0 13 error argv "/opt/local/bin/node" "/opt/local/bin/npm" "run" "test" 14 error node v4.4.7 15 error npm v2.15.9 16 error code ELIFECYCLE 17 error format-json-pretty@1.0.1 test: `mocha` 17 error Exit status 1 18 error Failed at the format-json-pretty@1.0.1 test script 'mocha'. 18 error This is most likely a problem with the format-json-pretty package, 18 error not with npm itself. 18 error Tell the author that this fails on your system: 18 error mocha 18 error You can get information on how to open an issue for this project with: 18 error npm bugs format-json-pretty 18 error Or if that isn't available, you can get their info via: 18 error 18 error npm owner ls format-json-pretty 18 error There is likely additional logging output above. 19 verbose exit [ 1, true ]