mirror of
https://github.com/strapi/strapi.git
synced 2025-11-14 17:19:01 +00:00
Merge branch 'master' into migration-guide
This commit is contained in:
commit
dc987556b8
@ -24,7 +24,7 @@ try {
|
|||||||
// Check if path is existing.
|
// Check if path is existing.
|
||||||
fs.accessSync(adminDirPath, fs.constants.R_OK | fs.constants.W_OK);
|
fs.accessSync(adminDirPath, fs.constants.R_OK | fs.constants.W_OK);
|
||||||
|
|
||||||
const install = exec(`cd ${adminDirPath} && npm install --prod --ignore-scripts`, {
|
const install = exec(`cd "${adminDirPath}" && npm install --prod --ignore-scripts`, {
|
||||||
silent: true
|
silent: true
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -35,8 +35,8 @@ try {
|
|||||||
|
|
||||||
console.log('✅ Success');
|
console.log('✅ Success');
|
||||||
console.log('');
|
console.log('');
|
||||||
} catch (err) {
|
} catch (e) {
|
||||||
if (err.code === 'ENOENT') {
|
if (e.code === 'ENOENT') {
|
||||||
console.log('✅ Success');
|
console.log('✅ Success');
|
||||||
console.log('');
|
console.log('');
|
||||||
|
|
||||||
@ -60,7 +60,7 @@ try {
|
|||||||
console.log('📦 Installing packages...');
|
console.log('📦 Installing packages...');
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const install = exec(`cd ${pluginPath} && npm install --prod --ignore-scripts`, {
|
const install = exec(`cd "${pluginPath}" && npm install --prod --ignore-scripts`, {
|
||||||
silent: true
|
silent: true
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -76,7 +76,7 @@ try {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
if (err.code === 'ENOENT') {
|
if (e.code === 'ENOENT') {
|
||||||
console.log('✅ Success');
|
console.log('✅ Success');
|
||||||
console.log('');
|
console.log('');
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user