diff --git a/src/commands/update-command.ts b/src/commands/update-command.ts index 406dd9df..38225ca1 100644 --- a/src/commands/update-command.ts +++ b/src/commands/update-command.ts @@ -235,6 +235,7 @@ async function performNpmUpdate( const performUpdate = (): void => { const child = spawn(updateCommand, updateArgs, { stdio: 'inherit', + shell: process.platform === 'win32', }); child.on('exit', (code) => { @@ -270,6 +271,7 @@ async function performNpmUpdate( console.log(info('Clearing package cache...')); const cacheChild = spawn(cacheCommand, cacheArgs, { stdio: 'inherit', + shell: process.platform === 'win32', }); cacheChild.on('exit', (code) => {