Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm dependencies not installed #4

Open
alceasan opened this issue Jun 16, 2020 · 0 comments
Open

npm dependencies not installed #4

alceasan opened this issue Jun 16, 2020 · 0 comments

Comments

@alceasan
Copy link

When loading an additional module in libs/customAutoload (mqtt in my case), it always fails on start because required dependencies are not installed:

Failed to Load Module : mqtt.js { Error: Cannot find module 'mqtt' at Function.Module._resolveFilename (module.js:548:15) at Module.Hook._require.Module.require (/usr/local/lib/node_modules/pm2/node_modules/require-in-the-middle/index.js:61:29) at require (internal/module.js:11:18) at Object.<anonymous> (/opt/shinobi/libs/customAutoLoad/mqtt.js:4:14) at Module._compile (module.js:653:30) at Object.Module._extensions..js (module.js:664:10) at Module.load (module.js:566:32) at tryModuleLoad (module.js:506:12) at Function.Module._load (module.js:498:3) at Module.require (module.js:597:17) at Module.Hook._require.Module.require (/usr/local/lib/node_modules/pm2/node_modules/require-in-the-middle/index.js:80:39) at require (internal/module.js:11:18) at /opt/shinobi/libs/customAutoLoad.js:49:25 at Array.forEach (<anonymous>) at /opt/shinobi/libs/customAutoLoad.js:43:28 at FSReqWrap.oncomplete (fs.js:135:15) code: 'MODULE_NOT_FOUND' }

We need a way to configure additional npm dependencies so they are installed on start.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant