nodeSetupCheck function
Install node modules for test.
Implementation
Future nodeSetupCheck(String dir) async {
if (isNpmSupported && (File(join(dir, 'package.json')).existsSync())) {
if (!(Directory(join(dir, 'node_modules')).existsSync())) {
await Shell(workingDirectory: dir).run('npm install');
}
}
}