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
[Bug]: Error reported when global "tsp-server.cmd" is used or typespec.tsp-server.path is configured to "...tsp-srever.cmd" in vscode when newer nodejs is installed
#4343
Closed
4 tasks done
RodgeFu opened this issue
Sep 5, 2024
· 0 comments
· Fixed by #4430
fixes#4343. shell needs to be used for executing .cmd file in newer
nodejs version (a breaking change from nodejs security release). more
detail can be found in the issue.
Describe the bug
[Bug]: a breaking change from nodejs security release. we need to set {shell: true} when spawn .cmd file, otherwilse EINVAL error would be reported.
detail can be found at: https://nodejs.org/en/blog/vulnerability/april-2024-security-releases-2
Reproduction
Error reported when global "tsp-server.cmd" is used or typespec.tsp-server.path is configured to "...tsp-srever.cmd" when new Node is installed.
Checklist
The text was updated successfully, but these errors were encountered: