mirror of
https://github.com/strapi/strapi.git
synced 2025-08-19 14:19:03 +00:00
parent
adea02af47
commit
ded4210eff
@ -187,14 +187,14 @@ module.exports = (scope, cb) => {
|
|||||||
});
|
});
|
||||||
}),
|
}),
|
||||||
new Promise(resolve => {
|
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) {
|
if (scope.client.module) {
|
||||||
cmd += ` ${scope.client.module}`;
|
cmd += ` ${scope.client.module}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
exec(cmd, () => {
|
exec(cmd, () => {
|
||||||
if (scope.client.module) {
|
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;
|
scope.client.version = lock.version;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -206,7 +206,7 @@ module.exports = (scope, cb) => {
|
|||||||
Promise.all(asyncFn)
|
Promise.all(asyncFn)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
try {
|
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) {
|
} catch(err) {
|
||||||
shell.rm('-r', scope.rootPath);
|
shell.rm('-r', scope.rootPath);
|
||||||
logger.info('Copying the dashboard...');
|
logger.info('Copying the dashboard...');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user