check where serverless was installed code example
Example 1: install serverless framework
npm install -g serverless
Example 2: install serverless framework
curl -o- -L https://slss.io/install | bash
npm install -g serverless
curl -o- -L https://slss.io/install | bash