create-bdpa-react-scaffold 1.7.0 ā 1.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/create-ui-lib.js +13 -2
- package/package.json +1 -1
package/create-ui-lib.js
CHANGED
|
@@ -62,9 +62,20 @@ function installDependencies(pm, cwd) {
|
|
|
62
62
|
const pmCmd = pm === "yarn" ? "yarn" : pm === "pnpm" ? "pnpm" : "npm";
|
|
63
63
|
console.log(`\nš¦ Installing dependencies with ${pmCmd}...`);
|
|
64
64
|
const args = pmCmd === "npm" ? ["install"] : ["install"];
|
|
65
|
-
const result = spawnSync(pmCmd, args, {
|
|
65
|
+
const result = spawnSync(pmCmd, args, {
|
|
66
|
+
stdio: "inherit",
|
|
67
|
+
cwd,
|
|
68
|
+
shell: true,
|
|
69
|
+
maxBuffer: 10 * 1024 * 1024
|
|
70
|
+
});
|
|
66
71
|
if (result.status !== 0) {
|
|
67
|
-
console.error(`\nā ${pmCmd} install failed.`);
|
|
72
|
+
console.error(`\nā ${pmCmd} install failed with status code ${result.status}.`);
|
|
73
|
+
console.error(`\nTroubleshooting tips:`);
|
|
74
|
+
console.error(` 1. Try again: cd ${cwd} && ${pmCmd} install`);
|
|
75
|
+
console.error(` 2. Check Node.js version: node --version (requires v18+)`);
|
|
76
|
+
console.error(` 3. Clear cache: ${pmCmd} cache clean --force`);
|
|
77
|
+
console.error(` 4. Check internet connection`);
|
|
78
|
+
console.error(` 5. Delete node_modules and package-lock.json, then retry`);
|
|
68
79
|
process.exit(result.status || 1);
|
|
69
80
|
}
|
|
70
81
|
console.log("\nā
Dependencies installed.");
|