pansetup 1.0.2 → 1.0.3

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.
Files changed (2) hide show
  1. package/bin/cli.js +2 -2
  2. package/package.json +1 -1
package/bin/cli.js CHANGED
@@ -45,7 +45,7 @@ const delay = (ms) => new Promise(r => setTimeout(r, ms));
45
45
  function installWithProgress(pkgName) {
46
46
  return new Promise((resolve, reject) => {
47
47
  const npmCmd = IS_WIN ? "npm.cmd" : "npm";
48
- const child = spawn(npmCmd, ["install", "-g", pkgName, "--prefer-online"], { stdio: ["ignore", "ignore", "pipe"] });
48
+ const child = spawn(npmCmd, ["install", "-g", pkgName, "--prefer-online"], { stdio: ["ignore", "ignore", "pipe"], shell: IS_WIN });
49
49
  const frames = ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"];
50
50
  let i = 0; const startTime = Date.now();
51
51
  let errBuf = "";
@@ -186,7 +186,7 @@ async function main() {
186
186
 
187
187
  if (IS_WIN) {
188
188
  log.info(`正在拉起 9Router...`);
189
- const child = spawn("cmd.exe", ["/c", "start", "cmd.exe", "/k", "9router"], { detached: true, stdio: "ignore" });
189
+ const child = spawn("cmd.exe", ["/c", "start", "cmd.exe", "/k", "9router"], { detached: true, stdio: "ignore", shell: true });
190
190
  child.unref();
191
191
  }
192
192
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pansetup",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "9Router & Claude Code 一键部署工具",
5
5
  "bin": {
6
6
  "pansetup": "bin/cli.js"