Skip to content

Commit 12f4577

Browse files
authored
Fix: Add required spawn parameter for Node 20 on Windows (#212)
1 parent dfbc857 commit 12f4577

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/integration/AdaptFramework/npmInstall.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ export default async function npmInstall ({
1111
logger?.log(chalk.cyan('installing node dependencies'))
1212
const npm = spawn((process.platform === 'win32' ? 'npm.cmd' : 'npm'), ['--unsafe-perm', 'install'], {
1313
stdio: 'inherit',
14-
cwd
14+
cwd,
15+
shell: true
1516
})
1617
npm.on('close', code => {
1718
if (code) return reject(new Error('npm install failed'))

0 commit comments

Comments
 (0)