title: Chef's nodejs cookbook failing to install package.json
body: <p>I have a node (Ubuntu 16, Laravel 5.2, Php 7, Nginx) which I've configured using a default recipe:</p>
  
  <pre><code>package 'git'
  package 'php'
  package 'composer'
  include_recipe 'nodejs'
  include_recipe 'nodejs::npm'
  
  nodejs_npm 'gulp'
  ...
  more commands
  ...
  </code></pre>
  
  <p>That default recipe works fine. When I get to my deploy recipe though, it fails every time when trying to use the nodejs_npm service to install from package.json.</p>
  
  <pre><code>nodejs_npm 'package.json' do
    path    /path/to/app/dir
    json    true
    user    'ubuntu'
    options ['--dependencies', '--silent']
  end
  </code></pre>
  
  <p>I'm following their outline on their <a href="https://github.com/redguide/nodejs" rel="nofollow noreferrer">github</a> page so I'm not sure what's going on but this is the message and compiled resource that i get back:</p>
  
  <pre><code>================================================================================
  Error executing action `install` on resource 'nodejs_npm[package.json]'
  ================================================================================
  Mixlib::ShellOut::ShellCommandFailed
  ------------------------------------
  execute[install NPM package package.json] (/var/chef/cache/cookbooks/nodejs/providers/npm.rb line 6) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received ''
  ---- Begin output of npm install  --dependencies  ----
  STDOUT: 
  STDERR: npm WARN deprecated node-uuid@1.4.7: use uuid module instead
  npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
  npm WARN deprecated minimatch@1.0.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
  npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
  npm WARN deprecated graceful-fs@1.2.3: graceful-fs v3.0.0 and before will fail on node releases &gt;= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
  ---- End output of npm install  --dependencies  ----
  Ran npm install  --dependencies  returned 
  
  
  Compiled Resource:
  ------------------
  # Declared in /var/chef/cache/cookbooks/my-cookbook/recipes/deploy.rb:51:in `from_file'
  nodejs_npm("package.json") do
    action [:install]
    retries 0
    retry_delay 2
    default_guard_interpreter :default
    declared_type :nodejs_npm
    cookbook_name "my-cookbook"
    recipe_name "deploy"
    path "/path/to/app/dir"
    json true
    user "ubuntu"
    options ["--dependencies", "--silent"]
    package "package.json"
  end
  </code></pre>