>allure serve
node:internal/child_process:421
throw new ErrnoException(err, 'spawn');
^
Error: spawn EINVAL
at ChildProcess.spawn (node:internal/child_process:421:11)
at Object.spawn (node:child_process:761:9)
at module.exports (C:\qa\wdio-tests\node_modules\allure-commandline\index.js:7:37)
at Object.<anonymous> (C:\qa\wdio-tests\node_modules\allure-commandline\bin\allure:5:1)
at Module._compile (node:internal/modules/cjs/loader:1369:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1427:10)
at Module.load (node:internal/modules/cjs/loader:1206:32)
at Module._load (node:internal/modules/cjs/loader:1022:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
at node:internal/main/run_main_module:28:49 {
errno: -4071,
code: 'EINVAL',
syscall: 'spawn'
}
Node.js v20.12.2,
package.json 值:
allure-commandline: "^2.28.0",
@wdio/allure-reporter: "^7.33.0",
@wdio/cli": "^7.7.4",
@wdio/cucumber-framework": "7.34.0",
尝试使用节点 18, 删除节点模块文件夹并重新安装它们没有帮助,错误仍然存在。如有任何帮助,我们将不胜感激。
谢谢
我在运行时似乎遇到了同样的问题:
npx allure-commandline serve
这给了我一个
"Error: spawn EINVAL"
输出:
node:internal/child_process:421
throw new ErrnoException(err, 'spawn');
^
Error: spawn EINVAL
at ChildProcess.spawn (node:internal/child_process:421:11)
at Object.spawn (node:child_process:761:9)
at module.exports (C:\Users\user\git\project\playwright\node_modules\allure-commandline\index.js:7:37)
at Object.<anonymous> (C:\Users\user\git\project\playwright\node_modules\allure-commandline\bin\allure:5:1)
at Module._compile (node:internal/modules/cjs/loader:1369:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1427:10)
at Module.load (node:internal/modules/cjs/loader:1206:32)
at Module._load (node:internal/modules/cjs/loader:1022:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
at node:internal/main/run_main_module:28:49 {
errno: -4071,
code: 'EINVAL',
syscall: 'spawn'
}
Node.js v20.12.2