diff --git a/src/cli/package-install.js b/src/cli/package-install.js index 4c7a21a429..af245b08fb 100644 --- a/src/cli/package-install.js +++ b/src/cli/package-install.js @@ -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';