mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-27 17:11:14 +01:00
fix dirname
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user