first commit
This commit is contained in:
commit
aa7869eb33
386 files changed
+69375
No files matched your search
@@ -0,0 +1,23 @@
|
||||
const deps = require('./package.json').dependencies;
|
||||
|
||||
const missing = [];
|
||||
|
||||
Object.keys(deps).forEach(dep => {
|
||||
try {
|
||||
require(dep);
|
||||
} catch(e) {
|
||||
if(e.code === 'MODULE_NOT_FOUND') {
|
||||
missing.push(dep);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
if(missing.length) {
|
||||
console.error(
|
||||
'\nThe following Gekko Broker dependencies are not installed: [',
|
||||
missing.join(', '),
|
||||
'].\n\nYou need to install them first, read here how:',
|
||||
'https://gekko.wizb.it/docs/installation/installing_gekko.html#Installing-Gekko-39-s-dependencies\n'
|
||||
);
|
||||
process.exit(1);
|
||||
}
|
||||
Reference in new issue
Block a user