Menu
AWS Elastic Beanstalk
Developer Guide (API Version 2010-12-01)

Installing Packages with a Package.json File

Use a package.json file in the root of your project source to use npm to install packages that your application requires.

Example package.json – Express

{
  "name": "my-app",
  "version": "0.0.1",
  "private": true,
  "dependencies": {
    "ejs": "latest",
    "aws-sdk": "latest",
    "express": "latest",
    "body-parser": "latest"
  },
  "scripts": {
    "start": "node app.js"
  }
}

When a package.json file is present, Elastic Beanstalk runs npm install to install dependencies.