currently it check the node_modules, this is not well, we can install dep globle use npm install -g and the node_modules can miss some packages, so check the nodejs dep, should use require
try {
require.resolve('@mozilla/readability');
require.resolve('jsdom');
require.resolve('minimist');
console.log('OK');
} catch (e) {
console.error('Missing dependencies');
process.exit(1);
}
currently it check the node_modules, this is not well, we can install dep globle use npm install -g and the node_modules can miss some packages, so check the nodejs dep, should use require