I’m a bit confused by these two facts:
- serverless is usually installed and works fine as a global npm package
- serverless plugins need to be installed locally and do not work when installed with
-g
flag (see https://github.com/amplify-education/serverless-domain-manager/issues/162)
Also see: https://github.com/serverless/serverless/issues/3319
I’m absolutelly fine with defining my plugins in serverless.yml, but as I’m not using nodejs in my project at all, having a package.json and node_modules in my local installation just to be able to run a serverless plugin seems a bit unnecessary.
Is there any particular reason why plugins should not work when installed globally?
Thanks for any clarification.