title: npm script throws an error, but doesn't give anything useful
body: <p>Attempting to run <code>jest</code> and see if my tests pass.  However, running jest instead gives me this very cryptic error.  Is there any way to get something <strong>useful</strong> out of node error messages or am I just not able to read this correctly?  </p>
  
  <pre><code>0 info it worked if it ends with ok
  1 verbose cli [ '/home/ec2-user/.nvm/versions/node/v10.4.0/bin/node',
  1 verbose cli   '/home/ec2-user/.nvm/versions/node/v10.4.0/bin/npm',
  1 verbose cli   'run',
  1 verbose cli   'test' ]
  2 info using npm@6.1.0
  3 info using node@v10.4.0
  4 verbose run-script [ 'pretest', 'test', 'posttest' ]
  5 info lifecycle api_rule_template@0.0.0-beta~pretest: api_rule_template@0.0.0-beta
  6 info lifecycle api_rule_template@0.0.0-beta~test: api_rule_template@0.0.0-beta
  7 verbose lifecycle api_rule_template@0.0.0-beta~test: unsafe-perm in lifecycle true
  8 verbose lifecycle api_rule_template@0.0.0-beta~test: PATH: /home/ec2-user/.nvm/versions/node/v10.4.0/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/ec2-user/environment/api_rule_template/node_modules/.bin:/home/ec2-user/.nvm/versions/node/v10.4.0/bin:/usr/local/rvm/gems/ruby-2.4.1/bin:/usr/local/rvm/gems/ruby-2.4.1@global/bin:/usr/local/rvm/rubies/ruby-2.4.1/bin:/usr/local/bin:/bin:/usr/bin:/home/ec2-user/.local/bin:/home/ec2-user/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/aws/bin:/home/ec2-user/.local/bin:/home/ec2-user/bin:/home/ec2-user/.local/bin:/home/ec2-user/bin:/opt/aws/bin:/usr/local/rvm/bin:/home/ec2-user/.local/bin:/home/ec2-user/bin:/home/ec2-user/.local/bin:/home/ec2-user/bin
  9 verbose lifecycle api_rule_template@0.0.0-beta~test: CWD: /home/ec2-user/environment/api_rule_template
  10 silly lifecycle api_rule_template@0.0.0-beta~test: Args: [ '-c', 'jest' ]
  11 silly lifecycle api_rule_template@0.0.0-beta~test: Returned: code: 1  signal: null
  12 info lifecycle api_rule_template@0.0.0-beta~test: Failed to exec test script
  13 verbose stack Error: api_rule_template@0.0.0-beta test: `jest`
  13 verbose stack Exit status 1
  13 verbose stack     at EventEmitter.&lt;anonymous&gt; (/home/ec2-user/.nvm/versions/node/v10.4.0/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:304:16)
  13 verbose stack     at EventEmitter.emit (events.js:182:13)
  13 verbose stack     at ChildProcess.&lt;anonymous&gt; (/home/ec2-user/.nvm/versions/node/v10.4.0/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
  13 verbose stack     at ChildProcess.emit (events.js:182:13)
  13 verbose stack     at maybeClose (internal/child_process.js:961:16)
  13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:5)
  14 verbose pkgid api_rule_template@0.0.0-beta
  15 verbose cwd /home/ec2-user/environment/api_rule_template
  16 verbose Linux 4.14.33-51.37.amzn1.x86_64
  17 verbose argv "/home/ec2-user/.nvm/versions/node/v10.4.0/bin/node" "/home/ec2-user/.nvm/versions/node/v10.4.0/bin/npm" "run" "test"
  18 verbose node v10.4.0
  19 verbose npm  v6.1.0
  20 error code ELIFECYCLE
  21 error errno 1
  22 error api_rule_template@0.0.0-beta test: `jest`
  22 error Exit status 1
  23 error Failed at the api_rule_template@0.0.0-beta test script.
  23 error This is probably not a problem with npm. There is likely additional logging output above.
  24 verbose exit [ 1, true ]
  </code></pre>