Installation of Serverless Framework

Go through the following steps:

  1. Install Node.js 4.0 or higher from https://nodejs.org/en/download/ . Once installed, we can verify installation through the following command:
 $ node --version
  1. Now we need to install Serverless Framework globally through the following command:
 $ npm install -g serverless
  1. Once installed successfully, we can verify the installation by using the following command. It will show all the framework commands and documentation: 
$ serverless
  1. We can also see the version of Serverless Framework installed by using the following command: 
$ serverless --version

Get DevOps for Serverless Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.