vuejs / create-vue

🛠️ The recommended way to start a Vite-powered Vue project
Other
3.8k stars 432 forks source link

fix: use child_process module to create project #554

Closed btea closed 3 months ago

btea commented 3 months ago

Description

The following error will occur on Windows platform when executing pnpm snapshot.

QQ_1723075297659

btea commented 3 months ago

Yeah, I noticed this too. However, the default terminal launched by vscode is not bash, and it needs to be switched manually, which seems a bit troublesome. Or, is there any other way to use bash to run files by default? 🤔

cexbrayat commented 3 months ago

@btea I don't know how you can switch on VS Code, but I guess there is a way to define your default terminal. Let's close then

btea commented 3 months ago

I found that we use npm-run-all2, but I think we can directly replace it with pnpm run build && pnpm run snapshot, maybe we can remove this dependency. What do you think? @cexbrayat https://github.com/vuejs/create-vue/blob/f283ab4fdc0cbef48e8ecde77d52f2398540e08d/package.json#L23

cexbrayat commented 3 months ago

@btea Sure, why not