mirror of
https://github.com/strapi/strapi.git
synced 2025-08-19 06:08:50 +00:00
parent
adea02af47
commit
ded4210eff
@ -187,14 +187,14 @@ module.exports = (scope, cb) => {
|
||||
});
|
||||
}),
|
||||
new Promise(resolve => {
|
||||
let cmd = `npm install --prefix ${scope.rootPath} ${scope.client.connector}@alpha`;
|
||||
let cmd = `npm install --prefix "${scope.rootPath}" ${scope.client.connector}@alpha`;
|
||||
if (scope.client.module) {
|
||||
cmd += ` ${scope.client.module}`;
|
||||
}
|
||||
|
||||
exec(cmd, () => {
|
||||
if (scope.client.module) {
|
||||
const lock = require(`${scope.rootPath}/node_modules/${scope.client.module}/package.json`);
|
||||
const lock =require(path.join(`${scope.rootPath}`,`/node_modules/`,`${scope.client.module}/package.json`));
|
||||
scope.client.version = lock.version;
|
||||
}
|
||||
|
||||
@ -206,7 +206,7 @@ module.exports = (scope, cb) => {
|
||||
Promise.all(asyncFn)
|
||||
.then(() => {
|
||||
try {
|
||||
require(path.resolve(`${scope.rootPath}/node_modules/${scope.client.connector}/lib/utils/connectivity.js`))(scope, cb.success, connectionValidation);
|
||||
require(path.join(`${scope.rootPath}`,`/node_modules/`,`${scope.client.connector}/lib/utils/connectivity.js`))(scope, cb.success, connectionValidation);
|
||||
} catch(err) {
|
||||
shell.rm('-r', scope.rootPath);
|
||||
logger.info('Copying the dashboard...');
|
||||
|
Loading…
x
Reference in New Issue
Block a user