title: NodeJS API deployement on AWS with Elastic Beanstalk
body: <p>I'm looking for deploying my NodeJS API with AWS.</p>
  
  <p>I tried to use Elastic Beanstalk but I always get this issue: </p>
  
  <p><a href="https://i.stack.imgur.com/F9Rd2.png" rel="nofollow noreferrer">Image of the error I get</a></p>
  
  <p>There is my package.json</p>
  
  <pre><code>  {
      "name": "",
      "scripts": {
        "start": "node server.js"
      },
      "version": "0.0.0",
      "private": true,
      "dependencies": {
        "bcryptjs": "^2.4.3",
        "body-parser": "^1.18.3",
        "express": "^4.16.4",
        "hammerjs": "^2.0.8",
        "jsonwebtoken": "^8.5.1",
        "mongoose": "^5.4.20",
        "mongoose-unique-validator": "^2.0.2",
        "multer": "^1.4.1",
        "tslib": "^1.9.0"
      }
    }
  </code></pre>
  
  <p>And I also have a nodecommand.config into a folder named ".ebextensions"</p>
  
  <pre><code>    option_settings:
        aws:elasticbeanstalk:container:nodejs:
          NodeCommand: "npm start"
  </code></pre>
  
  <p>Also, is Elastic Beanstalk the best way to deploy my API ?</p>
  
  <p>Thx for the answers !</p>