You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: