Alibaba Cloud - Installation

Installing Node.js

Serverless is a Node.js CLI tool so the first thing you need to do is to install Node.js on your machine.

Go to the official Node.js website, download and follow the installation instructions to install Node.js on your local machine.

You can verify that Node.js is installed successfully by running node --version in your terminal. You should see the corresponding Node version number printed out.

Installing the Serverless Framework

Next, install the Serverless Framework via npm which was already installed when you installed Node.js.

Open up a terminal and type npm install -g serverless to install Serverless.

npm install -g serverless

Once the installation process is done you can verify that Serverless is installed successfully by running the following command in your terminal:

serverless

To see which version of serverless you have installed run:

serverless --version

Installing the Alibaba Cloud Function Compute Provider Plugin

Install the latest plugin by running:

serverless plugin install --name serverless-aliyun-function-compute

Setting up Alibaba Cloud Function Compute

To run Serverless commands that issue requests to Alibaba Cloud, you will need to setup your Alibaba Cloud credentials on your machine.

Follow these instructions on setting up your Alibaba Cloud credentials

Edit this page

Alibaba Cloud - Installation

Installing Node.js

Serverless is a Node.js CLI tool so the first thing you need to do is to install Node.js on your machine.

Go to the official Node.js website, download and follow the installation instructions to install Node.js on your local machine.

You can verify that Node.js is installed successfully by running node --version in your terminal. You should see the corresponding Node version number printed out.

Installing the Serverless Framework

Next, install the Serverless Framework via npm which was already installed when you installed Node.js.

Open up a terminal and type npm install -g serverless to install Serverless.

npm install -g serverless

Once the installation process is done you can verify that Serverless is installed successfully by running the following command in your terminal:

serverless

To see which version of serverless you have installed run:

serverless --version

Installing the Alibaba Cloud Function Compute Provider Plugin

Install the latest plugin by running:

serverless plugin install --name serverless-aliyun-function-compute

Setting up Alibaba Cloud Function Compute

To run Serverless commands that issue requests to Alibaba Cloud, you will need to setup your Alibaba Cloud credentials on your machine.

Follow these instructions on setting up your Alibaba Cloud credentials