tencent cloud

피드백

Installation

마지막 업데이트 시간:2023-10-30 10:35:22

    You can install Serverless Cloud Framework through npm.

    Installing via npm

    Prerequisites

    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
    
    Note:

    • 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.
    • scf is short for the serverless-cloud-framework command.

    Installation steps

    Run the following command on the command line:

    npm i -g serverless-cloud-framework
    
    Note:

    If macOS prompts that you have no permission, you need to run sudo npm i -g serverless-cloud-framework for 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
    

    Viewing version information

    After the installation is completed, run the scf -v command to view the version information of Serverless Cloud Framework:

    scf -v
    

    Relevant Operations

    Next step: Getting started

    문의하기

    고객의 업무에 전용 서비스를 제공해드립니다.

    기술 지원

    더 많은 도움이 필요하시면, 티켓을 통해 연락 바랍니다. 티켓 서비스는 연중무휴 24시간 제공됩니다.

    연중무휴 24시간 전화 지원