As explained in the Setup page, the recommended way to install Serverless Framework is via NPM.
If you don't want to install Node or NPM, you can install the serverless CLI as a standalone binary instead.
To install the latest version, run this command in your terminal:
curl -o- -L https://slss.io/install | bashTo install a specific version, you may set a VERSION variable, for example:
curl -o- -L https://slss.io/install | VERSION=2.72.2 bashThen, open another terminal window to run the serverless program.
On macOS/Linux, upgrade Serverless Framework to the latest version by running:
serverless upgrade
# You can also restrict the upgrade to the latest v2 version:
curl -o- -L https://slss.io/install | VERSION=2.72.2 bashInstall Serverless Framework with Chocolatey:
choco install serverlessOn Windows, upgrade Serverless Framework to the latest version by running:
choco upgrade serverlessNow that Serverless Framework is installed, get back to the Setup guide to create your first project.