Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arco init hello-arco-pro failed with spawnSync npm.cmd EINVAL(.arco-cli/init.js) #390

Open
1 task
betgar opened this issue Jul 15, 2024 · 5 comments
Open
1 task

Comments

@betgar
Copy link

betgar commented Jul 15, 2024

Basic Info

Extra info

The patch is deployed in 18.20.2, 20.12.2, 21.17.3 and also 22.0.0. If the node.js version is lower than just mentioned, this bug will not be triggered.

What is expected?

fix it.

Steps to reproduce

You must pass shell: true in the option on Windows environment if you need to spawn or spawnSync program ended with .bat or .cmd extension.

nodejs/node#52681 (comment)

@betgar
Copy link
Author

betgar commented Jul 15, 2024

@betgar betgar changed the title arco init hello-arco-pro failed at .arco-cli/init.js arco init hello-arco-pro failed with spawnSync npm.cmd EINVAL(.arco-cli/init.js) Jul 15, 2024
@betgar
Copy link
Author

betgar commented Jul 15, 2024

node.js出现漏洞,修正了之后部署了新版本,在windows上调用spawn和spawnSync接口,必须传递shell: true参数。否则就会报错。

@betgar
Copy link
Author

betgar commented Jul 17, 2024

@sHow8e @PengJiyuan

@guoyanlongwork
Copy link

所以最后的解决方案是什么 有人帮忙解答一下么

@betgar
Copy link
Author

betgar commented Jul 26, 2024

所以最后的解决方案是什么 有人帮忙解答一下么

切换下node.js版本,第一次初始化规避下。使用 18.20.2, 20.12.2, 21.17.3 之前的版本就可以了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants