title: package.json scripts failing on heroku
body: <p>So I have a series of scripts that are set up to either dev servers for a React/Node Express application OR a production server on heroku. The structure of the app is as follows:</p>
  
  <p>client/package.json //pckg for react app
  package.json //pckg for the node server</p>
  
  <p>these are the scripts in the clients package:</p>
  
  <pre><code>  "scripts": {
  "start": "if-env NODE_ENV=production &amp;&amp; npm run start:prod || npm run start:dev",
  "start:prod": "node server.js",
  "start:dev": "set NODE_ENV=development&amp;&amp; concurrently \"nodemon --ignore 'client/*'\" \"npm run client\"",
  "client": "cd client &amp;&amp; npm run start",
  "seed": "node scripts/seedDB.js",
  "install": "cd client &amp;&amp; npm install",
  "build": "cd client &amp;&amp; npm run build",
  "heroku-postbuild": "npm run build"
  </code></pre>
  
  <p>}</p>
  
  <p>and the only difference between the react apps package.json and the one that is automatically generated with create-react-app is as follows:</p>
  
  <pre><code>"proxy": "http://localhost:3001/",
  </code></pre>
  
  <p>the way its supposed to run is, install scripts at root folder, run install script to cd into client and install react apps dependencies, then  heroku's post-build script should kick in to run the build script which cds into client and builds a production ready react app. finally the start script should see a NODE_ENV of production and run start:prod. </p>
  
  <p>my problem is that for some reason when i push to heroku, it seems to get stuck on an infinite loop on the install script. I have NO clue why, as the exact same scripts work on other projects PERFECTLY. </p>
  
  <p><strike><a href="https://github.com/LordKriegan/reactdbdemo" rel="nofollow noreferrer">https://github.com/LordKriegan/reactdbdemo</a></strike>
  <a href="https://github.com/LordKriegan/reactdbdemo2/" rel="nofollow noreferrer">https://github.com/LordKriegan/reactdbdemo2/</a> if anyone wants to look at it. (doing a full stack demo for my students :/ not much of a demo if i cant get it deployed)</p>