title: npm ERR! Invalid version: "1"
body: <p><strong>QUESTION:</strong></p>
  
  <p>When doing "node app" on my local machine, everything works.</p>
  
  <p>But when I deploy my project to the Google App Engine, the instance is killed and I find the following error in my logs:</p>
  
  <pre><code>npm ERR! Invalid version: "1"
  </code></pre>
  
  <p>I looked at:</p>
  
  <p><a href="https://stackoverflow.com/questions/16887993/npm-why-is-a-version-0-1-invalid">npm: Why is a version &quot;0.1&quot; invalid?</a></p>
  
  <p><a href="https://stackoverflow.com/questions/46263870/npm-err-invalid-version-y">npm ERR! Invalid version: y</a></p>
  
  <p><a href="https://stackoverflow.com/questions/29736059/how-to-workaround-npm-error-invalid-version-0-1-bug">how to workaround npm &quot;Error: Invalid version: &quot;0.1&quot; BUG?</a></p>
  
  <p>What is the mistake I need to correct ?</p>
  
  <p>The deployment process started by <code>gcloud app deploy --version=deploy</code></p>
  
  <p>always ends with:</p>
  
  <pre><code>ERROR: (gcloud.app.deploy) Error Response: [4] Timed out waiting for the app infrastructure to become healthy.
  </code></pre>
  
  <p>Here is my package.json</p>
  
  <hr>
  
  <p><strong>CODE:</strong></p>
  
  <p>package.json</p>
  
  <pre><code>{
    "name": "Name",
    "version": "1.0.0",
    "description": "Desc",
    "main": "app.js",
    "engines": {
      "node": "6.9.4",
      "npm": "4.2.0"
    },
    "scripts": {
      "test": "echo \"Error: no test specified\" &amp;&amp; exit 1",
      "start": "node app.js",
      "minify": "html-minifier --input-dir ./viewsCopy --output-dir ./views-minified --collapse-whitespace --html5 --minify-js true"
    },
    "author": "author",
    "license": "copyright",
    "dependencies": {
      "bad-words": "^1.5.1",
      "body-parser": "1.1*.1",
      "connect-flash": "0.1.1",
      "decimal.js": "^9.0.1",
      "ejs": "2.5.5",
      "events": "^1.1.1",
      "express": "4.15.2",
      "express-session": "1.15.2",
      "express-validator": "3.2.0",
      "fast-crc32c": "^1.0.4",
      "firebase": "3.9.0",
      "firebase-admin": "^5.2.1",
      "fs": "0.0.1-security",
      "glob": "7.1.1",
      "helmet": "3.5.0",
      "html-minifier": "^3.5.0",
      "morgan": "1.8.1",
      "multer": "1.3.0",
      "nodemailer": "4.0.0",
      "path": "0.12.7",
      "raven": "^2.0.0",
      "request": "^2.83.0",
      "sanitize-html": "^1.14.1",
      "uglify-js": "^3.0.6"
    }
  }
  </code></pre>