@x-all-in-one/coding-helper 0.0.6 → 0.0.7
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/dist/lib/wizard.js +3 -12
- package/package.json +1 -1
package/dist/lib/wizard.js
CHANGED
|
@@ -828,18 +828,9 @@ export class Wizard {
|
|
|
828
828
|
const isWindows = process.platform === 'win32';
|
|
829
829
|
console.log(chalk.cyan(`\n${i18n.t('wizard.bun_installing')}\n`));
|
|
830
830
|
return new Promise((resolve) => {
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
// Windows: use npm to install bun globally
|
|
835
|
-
command = 'npm.cmd';
|
|
836
|
-
args = ['install', '-g', 'bun'];
|
|
837
|
-
}
|
|
838
|
-
else {
|
|
839
|
-
// macOS/Linux: use curl installer
|
|
840
|
-
command = 'bash';
|
|
841
|
-
args = ['-c', 'curl -fsSL https://bun.sh/install | bash'];
|
|
842
|
-
}
|
|
831
|
+
// Use npm to install bun globally (works on all platforms)
|
|
832
|
+
const command = isWindows ? 'npm.cmd' : 'npm';
|
|
833
|
+
const args = ['install', '-g', 'bun'];
|
|
843
834
|
const child = spawn(command, args, {
|
|
844
835
|
stdio: 'inherit',
|
|
845
836
|
shell: true,
|