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
{{ message }}
Repository navigation
[DEP0190] DeprecationWarning when spawning npm with shell: true on Windows #730
When running adapter integration tests on Windows with Node.js ≥ 22, the following deprecation warning appears:
(node:XXXX) [DEP0190] DeprecationWarning: Passing args to a child process with shell option true
can lead to security vulnerabilities, as the arguments are not escaped, only concatenated.
Root cause
PR #595 introduced shell: true for spawning npm on Windows to work around a Windows security update (April 2024) that broke .cmd/.bat execution. This fix is correct and necessary, but newer Node.js versions now emit DEP0190 when arguments are passed to a child process launched with shell: true.
Steps to reproduce
Use any ioBroker adapter with @iobroker/testing
Run npm run test:integration on Windows with Node.js ≥ 22
Observe the DEP0190 warning during adapter startup
Expected behavior
No deprecation warning.
Possible fix
Instead of shell: true with arguments as an array, pass the full command as a single string when shell: true is used on Windows:
changed the title [-]DEP0190] DeprecationWarning when spawning npm with shell: true on Windows[/-][+][DEP0190] DeprecationWarning when spawning npm with shell: true on Windows[/+]on Jul 5, 2026
Activity
[-]DEP0190] DeprecationWarning when spawning npm with shell: true on Windows[/-][+][DEP0190] DeprecationWarning when spawning npm with shell: true on Windows[/+]