Npm ERR! Cannot find module './install.js'

My project config.yml uses orb serverless: circleci/serverless-framework@1.0.1
When trying to do sls plugin installation, it gives problem related to node dependencies - where’s that coming from. My project is a python based project. The plugin install command run is -
sls plugin install -n serverless-python-requirements
The error is -
npm ERR! code MODULE_NOT_FOUND
npm ERR! Cannot find module ‘./install.js’
npm ERR! Require stack:
npm ERR! - /snapshot/serverless/node_modules/npm/lib/npm.js
npm ERR! - /snapshot/serverless/node_modules/npm/lib/cli.js
npm ERR! - /snapshot/serverless/node_modules/npm/bin/npm-cli.js
npm ERR! 1) If you want to compile the package/file into executable, please pay attention to compilation warnings and specify a literal in ‘require’ call. 2) If you don’t want to compile the package/file into executable and want to ‘require’ it from filesystem (likely plugin), specify an absolute path in ‘require’ call using process.cwd() or process.execPath.

2 Likes