Windows上的TestCafe失败,并生成spawn powershell.exe ENOENT错误

问题描述 投票:0回答:1

我正在尝试在Windows10上运行TestCafe以进行评估,但是按照说明https://devexpress.github.io/testcafe/documentation/using-testcafe/installing-testcafe.html#local-installation安装后,当我运行带有使用浏览器作为选项的选项运行testcafe时,总是出现下面的错误,即[ C0]和testcafe -h

testcafe -v

操作系统版本:Windows 10.0.18363

节点版本:v13.6.0(64位),但我也尝试了其他各种版本和32位

npm版本:6.13.6

testcafe版本:1.7.1

我使用的其他节点应用程序都没有任何问题,仅此一个。如果有人可以帮助我找到问题以及如何解决它,那就太好了。

node.js powershell testing automated-tests testcafe
1个回答
1
投票

此问题已在ERROR Error: Command failed with ENOENT: powershell.exe -NoLogo -NonInteractive -Command "$cp = (chcp | Select-String '\\d+').Matches.Value; Try { chcp 65001; Get-Item 'Registry::HKEY_LOCAL_MACHINE\Software\Clients\StartMenuInternet\*\shell\open\command'|Get-ItemProperty -Name '(default)'|Format-List -Property '(default)','PSPath'|Out-String -Width 2147483647|Write-Host; } Finally { chcp $cp; }" spawn powershell.exe ENOENT at notFoundError (C:\Users\xxx\AppData\Roaming\npm\node_modules\testcafe\node_modules\cross-spawn\lib\enoent.js:6:26) at verifyENOENT (C:\Users\xxx\AppData\Roaming\npm\node_modules\testcafe\node_modules\cross-spawn\lib\enoent.js:40:16) at ChildProcess.cp.emit (C:\Users\xxx\AppData\Roaming\npm\node_modules\testcafe\node_modules\cross-spawn\lib\enoent.js:27:25) at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12) 提交中解决。该修复程序将包含在https://github.com/DevExpress/testcafe-browser-tools/commit/7e8baac47ec4279e896290668e68b4ff87734a83版本中。

© www.soinside.com 2019 - 2024. All rights reserved.