-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
命令行缺少window参数 #16938
Comments
This was referenced Nov 30, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
相关平台
React Native
使用框架: React
复现步骤
Error: spawn EINVAL
at ChildProcess.spawn (node:internal/child_process:414:11)
at spawn (node:child_process:761:9)
at D:\code\yd\taroyiqiwan\taroYiQiWan\node_modules@tarojs\rn-runner\src\index.ts:64:12
at Generator.next ()
at D:\code\yd\taroyiqiwan\taroYiQiWan\node_modules@tarojs\rn-runner\dist\index.js:8:71
at new Promise ()
at __awaiter (D:\code\yd\taroyiqiwan\taroYiQiWan\node_modules@tarojs\rn-runner\dist\index.js:4:12)
at rnRunner (D:\code\yd\taroyiqiwan\taroYiQiWan\node_modules@tarojs\rn-runner\dist\index.js:39:12)
at Object. (D:\code\yd\taroyiqiwan\taroYiQiWan\node_modules@tarojs\cli\dist\presets\platforms\rn.js:91:27)
at step (D:\code\yd\taroyiqiwan\taroYiQiWan\node_modules@tarojs\cli\dist\presets\platforms\rn.js:87:23) {
errno: -4071,
code: 'EINVAL',
syscall: 'spawn'
}
node:internal/process/promises:288
triggerUncaughtException(err, true /* fromPromise */);
^
Error: spawn EINVAL
at ChildProcess.spawn (node:internal/child_process:414:11)
at spawn (node:child_process:761:9)
at D:\code\yd\taroyiqiwan\taroYiQiWan\node_modules@tarojs\rn-runner\src\index.ts:64:12
at Generator.next ()
at D:\code\yd\taroyiqiwan\taroYiQiWan\node_modules@tarojs\rn-runner\dist\index.js:8:71
at new Promise ()
at __awaiter (D:\code\yd\taroyiqiwan\taroYiQiWan\node_modules@tarojs\rn-runner\dist\index.js:4:12)
at rnRunner (D:\code\yd\taroyiqiwan\taroYiQiWan\node_modules@tarojs\rn-runner\dist\index.js:39:12)
at Object. (D:\code\yd\taroyiqiwan\taroYiQiWan\node_modules@tarojs\cli\dist\presets\platforms\rn.js:91:27)
at step (D:\code\yd\taroyiqiwan\taroYiQiWan\node_modules@tarojs\cli\dist\presets\platforms\rn.js:87:23) {
errno: -4071,
code: 'EINVAL',
syscall: 'spawn'
}
期望结果
(0, child_process_1.spawn)(npxCmd, [
'react-native',
'start',
'--custom-log-reporter-path',
'@tarojs/rn-supporter/TerminalReporter'
].concat(cliParams), {
stdio: 'inherit',
shell:true
});
实际结果
(0, child_process_1.spawn)(npxCmd, [
'react-native',
'start',
'--custom-log-reporter-path',
'@tarojs/rn-supporter/TerminalReporter'
].concat(cliParams), {
stdio: 'inherit'
});
环境信息
补充信息
缺少 shell:true
The text was updated successfully, but these errors were encountered: