When I am trying to install serverless module globally with the command:
npm install -g serverless on windown 10 with node 8.11.3 or 12.14.0
I am facing the following error :
Cannot find module '@serverless/cli
Same issue I am facing when serverless module is installed locally to a project
Also the package.json file contains the serverless entry and serverless/cli module is installed in the node modules of serverless.
But it is unable to get the path of @serverless/cli
though when I changed it path to relative path it is able to fetch the module.
Similarly I noticed the same issue for all the node modules installed with @ like @serverless/cli
how can i resolve the issue