You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you execute zapier push on a Windows system with Nodejs version 18.20.2. It results in the below error
✔ Copying project to temp directory
✖ Installing project dependencies
» Error: spawn EINVAL
»
» re-run this command with `--debug` for more info
The same error is thrown by zapier test or any other command that tries to execute npm as part of it.
As a workaround you can use an older version of node like 18.12.0
Reproduction Steps
create an integration using zapier-cli on a windows device with Nodejs 18.20.2 (LTS) and execute zapier test or zapier push
Zapier Platform version
15.7.2
Node.js version
18.20.2
Your Operating System
Windows 10 (win32-x64)
npm/yarn version
10.5.0
App ID
No response
More Details
It is caused by runCommand function due to changes in child_process.spawn which now requires shell option to be true for executing .cmd or .bat commands. This change was from cve-2024-27980.
I would like to make a PR for this. Is it ok to just update the runCommand function to set shell as true?
The text was updated successfully, but these errors were encountered:
Thanks for your bug report @jaydamani and apologies for the late response! I especially appreciate how you included the source of the problem in your report. I went ahead opened a quick fix PR here: #788
I'll make sure to give you a shoutout in the changelog for this patch release!
Bug Description
When you execute
zapier push
on a Windows system with Nodejs version 18.20.2. It results in the below errorThe same error is thrown by
zapier test
or any other command that tries to execute npm as part of it.As a workaround you can use an older version of node like 18.12.0
Reproduction Steps
create an integration using zapier-cli on a windows device with Nodejs 18.20.2 (LTS) and execute
zapier test
orzapier push
Zapier Platform version
15.7.2
Node.js version
18.20.2
Your Operating System
Windows 10 (win32-x64)
npm/yarn version
10.5.0
App ID
No response
More Details
It is caused by runCommand function due to changes in
child_process.spawn
which now requires shell option to be true for executing.cmd
or.bat
commands. This change was from cve-2024-27980.I would like to make a PR for this. Is it ok to just update the runCommand function to set shell as true?
The text was updated successfully, but these errors were encountered: