This topic describes the prerequisites for installing ApsaraVideo Media Processing (MPS) SDK for Node.js. This topic also describes how to install and update MPS SDK for Node.js.
Environment requirements
One of the following Node.js versions 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
directory.
For example, MPS SDK for Node.js is downloaded to the /path/to/aliyun-openapi-Node.js-sdk directory. 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 the preceding 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