You can install Serverless Cloud Framework through npm.
Before installing through npm, you need to make sure that Node.js (later than v12) and npm have been installed in your environment (for more information, see Node.js Installation Guide) .
$ node -v v12.18.0 $ npm -v 7.0.10
- To ensure the installation speed and stability, we recommend you use cnpm for installation: download and install cnpm first, and then replace all the npm commands used below with cnpm commands.
scfis short for the
Run the following command on the command line:
npm i -g serverless-cloud-framework
If macOS prompts that you have no permission, you need to run
sudo npm i -g serverless-cloud-frameworkfor installation.
If you have already installed Serverless Cloud Framework, you can run the following command to upgrade it to the latest version:
npm update -g serverless-cloud-framework
After the installation is completed, run the
scf -v command to view the version information of Serverless Cloud Framework:
Next step: Getting started
Contact our sales team or business advisors to help your business.
Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.
Was this page helpful?