Menu
AWS SDK for JavaScript
Developer Guide

Installing the SDK for JavaScript

You can download minified and non-minified distributable versions of the current AWS SDK for JavaScript from GitHub at:

https://github.com/aws/aws-sdk-js/tree/master/dist

In Node.js

The preferred way to install the AWS SDK for JavaScript for Node.js is to use the npm package manager for Node.js. To do this, type the following into a terminal window:

Copy
npm install aws-sdk

In Web Browsers

You don't have to install the SDK to use it in browser scripts. You can load the hosted SDK package directly from Amazon Web Services with a script in your HTML pages. The hosted SDK package supports the subset of AWS services that enforce cross-origin resource sharing (CORS). For more information, see Loading the SDK for JavaScript.

You can create a custom build of the SDK in which you select the specific web services and versions that you want to use. You then download your custom SDK package for local development and host it for your application to use. For more information about creating a custom build of the SDK, see Building the SDK for Browsers.

Installing Using Bower

Bower is a package manager for the web. After you install Bower, you can use it to install the SDK. To install the SDK using Bower, type the following into a terminal window:

Copy
bower install aws-sdk-js

On this page: