AWS Elastic Beanstalk
Developer Guide
AWS services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon AWS.

Locking Dependencies with npm shrinkwrap

The Node.js platform runs npm install each time you deploy. When new versions of your dependencies are available, they will be installed when you deploy your application, potentially causing the deployment to take a long time.

You can avoid upgrading dependencies by creating an npm-shrinkwrap.json file that locks down your application's dependencies to the current version.

$ npm install $ npm shrinkwrap wrote npm-shrinkwrap.json

Include this file in your source bundle to ensure that dependencies are only installed once.