

The following sections provide more information about establishing your Node.js module dependencies for your application.

Elastic Beanstalk assumes that the dependency packages are available in the node_modulesĭirectory for Node.js to access and load. If Elastic Beanstalk detects the node_modules directory, Elastic Beanstalk doesn't run npm install, even if a For more information, see the npm Docs website.

Packages listed in the package.json file from the public npm registry or other locations. The npm install command installs theĭependencies in the node_modules directory, which Elastic Beanstalk creates beforehand. Node_modules directory isn't present, Elastic Beanstalk runs npm install. If Elastic Beanstalk detects this file and a You can specify these module dependencies using a package.json file. For more information, see Loading from node_modules When your application runs, Node.js loads the modules from thisĭirectory. These modules are stored in a node_modules directory. Your application might have dependencies on some Node.js modules, such as the ones you specify in require() statements.
