This topic describes how to add dependencies to install the Alibaba Cloud SDK for Node.js.

Note You must install the core library of the Alibaba Cloud SDK for Node.js regardless of the method you use to install the Alibaba Cloud SDK for Node.js.

Prerequisites

Before you install and use the Alibaba Cloud SDK for Node.js, make sure that the following requirements are met:
  • The Node.js environment is installed. The Node.js version is 8.0 or later.
  • An Alibaba Cloud account is created and an AccessKey pair is created. For more information, see Create an AccessKey pair.

Procedure

To install the Alibaba Cloud SDK for Node.js by using a dependency manager, perform the following operations:

Run the following command to install the core library of the Alibaba Cloud SDK for Node.js:
npm install @alicloud/pop-core -S

You can also use package managers such as cnpm and Yarn to install the @alicloud/pop-core library.

After the Alibaba Cloud SDK for Node.js is installed, you can use OpenAPI Explorer to generate the sample code of API operations for the SDK, and apply the sample code in your projects. For more information, see GitHub repositories.

Core library of the Alibaba Cloud SDK for Node.js on GitHub

Core library of the Alibaba Cloud SDK for Node.js