I am trying to install Serverless locally by running
$ npm install serverless
but I got this error
npm ERR! code 1 npm ERR! path /home/elia/projects/aws-experiments/serverless-framework-hello-world/node_modules/serverless npm ERR! command failed npm ERR! command sh -c node ./scripts/postinstall.js
I am using Node.js 14.16.0 and npm 7.5.6 (snap).
I found this forum post Error Installing serverless using NPM on ubuntu 20.04 Desktop but the suggested solution does not work in my case.