Added pluginPath based on npm

This commit is contained in:
straccio
2016-01-27 07:40:26 +01:00
parent 6500912f54
commit ffe4232c3b

View File

@@ -119,9 +119,10 @@ Plugin.getDefaultPaths = function() {
} else {
paths.push('/usr/local/lib/node_modules');
paths.push('/usr/lib/node_modules');
const exec = require('child_process').execSync
paths.push(exec('/bin/echo -n "$(npm -g prefix)/lib/node_modules"').toString('utf8'));
}
}
return paths;
}