fix dirname

v1.18.x
Barış Soner Uşaklı 7 years ago
parent f3fda152bf
commit fdd51f43d8

@ -33,8 +33,7 @@ function installAll() {
var prod = global.env !== 'development';
var command = 'npm install';
try {
fs.accessSync(path.join(dirname, 'node_modules/nconf/package.json'), fs.constants.R_OK);
fs.accessSync(path.join(modulesPath, 'nconf/package.json'), fs.constants.R_OK);
var packageManager = require('nconf').get('package_manager');
if (packageManager === 'yarn') {
command = 'yarn';

Loading…
Cancel
Save