This topic describes the prerequisites for installing ApsaraVideo Media Processing (MPS) SDK V2.0 for Node.js and how to install MPS SDK V2.0 for Node.js.
Prerequisites
One of the following Node.js versions is installed. For more information, visit Node.js.
Node.js 8.x and later
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 V2.0 for Node.js are stored in the @alicloud directory.
For example, MPS SDK V2.0 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-coremodule. Sample code:npm install --save @alicloud/mts20140618@3.0.0The
--saveoption in this command writes the module to the package.json file of the application as a dependent module.