Skip to content

Commit 02e8fa8

Browse files
committedMar 23, 2025·
Fix create-parcel on windows
1 parent d805305 commit 02e8fa8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/utils/create-parcel/src/create-parcel.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ async function install(template: string, name: string) {
132132

133133
function spawn(cmd, args, opts) {
134134
return new Promise((resolve, reject) => {
135-
let p = _spawn(cmd, args, opts);
135+
let p = _spawn(cmd, args, {...opts, shell: process.platform === 'win32'});
136136
p.on('close', (code, signal) => {
137137
if (code || signal) {
138138
reject(new Error(`${cmd} failed with exit code ${code}`));

0 commit comments

Comments
 (0)
Please sign in to comment.