Skip to content

Commit

Permalink
Fixed node 22 shell permission missing
Browse files Browse the repository at this point in the history
Node 22 needs shell:true as parameter on spawn function
  • Loading branch information
jeanp117 authored Jul 4, 2024
1 parent 16d8e73 commit 903effb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ inquirer

let spawASYNC = (command: string, args: Array<string>, options?: any) =>
new Promise<void>((resolve, reject) => {
spawn(command, args, { stdio: "pipe", ...options }).on("close", (code) => {
spawn(command, args, { stdio: "pipe", ...options, shell: true }).on("close", (code) => {
if (code === 0) {
clearInterval(interval);
resolve();
Expand Down

0 comments on commit 903effb

Please sign in to comment.