This topic describes how to install and update the server operation SDK for Node.js.

Prerequisites

ApsaraVideo VOD is activated. For more information, see Activate ApsaraVideo VOD.

Environment requirements

One of the following Node.js packages is installed. For more information, visit Node.js.
  • Node.js 4.x
  • Node.js 6.x
You can run the node -v command to check the version of Node.js.

Install the SDK

We recommend that you use npm to install dependent modules for Node.js. For more information, visit npm. All Alibaba Cloud SDKs for Node.js are stored in the @alicloud folder.
  • For example, ApsaraVideo VOD SDK for Node.js is downloaded to the /path/to/aliyun-openapi-Node.js-sdk folder. If you develop an application based on the SDK core library, run the following command to install the @alicloud/pop-core module: The following sample code provides an example:
    npm install @alicloud/pop-core --save
  • The --save option in this command writes the module to the package.json file of the application as a dependent module.

Update the SDK

If new features are unavailable in the current SDK, update the SDK to the latest version. The following sample code provides an example:
npm install @alicloud/pop-core --save