title: Heroku cedar node app - cannot push master after update to 6.11.1
body: <p>After updating the node server to version 6.11.1 in response to the recent security update email from Heroku, I cannot git push my local master changes any more. The server and app restarted fine after the update.</p>
  
  <p>I have tried deleted and reinstalled all node_modules, committing the changes and the app runs without errors locally but I get the same build failure when trying to deploy the master. The only change I've made to the package.json file is adding the npm version which was previously unspecified.</p>
  
  <p>From the logs the server build fails when installing node modules:</p>
  
  <pre><code>remote: -----&gt; Building dependencies
  remote:        Installing node modules (package.json)
  remote:        npm ERR! Cannot read property '0' of undefined
  </code></pre>
  
  <p>Is force pushing the best/a good solution?</p>
  
  <p>This is the full logs:</p>
  
  <pre><code>Counting objects: 18, done.
  Delta compression using up to 8 threads.
  Compressing objects: 100% (18/18), done.
  Writing objects: 100% (18/18), 8.80 KiB | 0 bytes/s, done.
  Total 18 (delta 13), reused 0 (delta 0)
  remote: Compressing source files... done.
  remote: Building source:
  remote:
  remote: -----&gt; Node.js app detected
  remote:
  remote: -----&gt; Creating runtime environment
  remote:
  remote:        NPM_CONFIG_LOGLEVEL=error
  remote:        NPM_CONFIG_PRODUCTION=true
  remote:        NODE_VERBOSE=false
  remote:        NODE_ENV=production
  remote:        NODE_MODULES_CACHE=true
  remote:
  remote: -----&gt; Installing binaries
  remote:        engines.node (package.json):  6.11.1
  remote:        engines.npm (package.json):   5.3.0
  remote:
  remote:        Downloading and installing node 6.11.1...
  remote:        Downloading and installing npm 5.3.0 (replacing version 3.10.10)...
  remote:
  remote: -----&gt; Restoring cache
  remote:        Loading 2 from cacheDirectories (default):
  remote:        - node_modules
  remote:        - bower_components (not cached - skipping)
  remote:
  remote: -----&gt; Building dependencies
  remote:        Installing node modules (package.json)
  remote:        npm ERR! Cannot read property '0' of undefined
  remote:
  remote:        npm ERR! A complete log of this run can be found in:
  remote:        npm ERR!     /app/.npm/_logs/2017-07-20T22_54_19_003Z-debug.log
  remote:
  remote: -----&gt; Build failed
  remote:
  remote:        We're sorry this build is failing! You can troubleshoot common issues here:
  remote:        https://devcenter.heroku.com/articles/troubleshooting-node-deploys
  remote:
  remote:        If you're stuck, please submit a ticket so we can help:
  remote:        https://help.heroku.com/
  remote:
  remote:        Love,
  remote:        Heroku
  remote:
  remote:  !     Push rejected, failed to compile Node.js app.
  remote:
  remote:  !     Push failed
  remote: Verifying deploy...
  remote:
  remote: !   Push rejected to app-name.
  remote:
  To https://git.heroku.com/app-name.git
   ! [remote rejected] master -&gt; master (pre-receive hook declined)
  error: failed to push some refs to 'https://git.heroku.com/app-name.git'
  </code></pre>
  
  <p>Thanks.</p>