Skip to content

Commit

Permalink
Fix: Add required spawn parameter for Node 20 on Windows (#212)
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-steele authored Oct 7, 2024
1 parent dfbc857 commit 12f4577
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/integration/AdaptFramework/npmInstall.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ export default async function npmInstall ({
logger?.log(chalk.cyan('installing node dependencies'))
const npm = spawn((process.platform === 'win32' ? 'npm.cmd' : 'npm'), ['--unsafe-perm', 'install'], {
stdio: 'inherit',
cwd
cwd,
shell: true
})
npm.on('close', code => {
if (code) return reject(new Error('npm install failed'))
Expand Down

0 comments on commit 12f4577

Please sign in to comment.