最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

我该如何解决“引发新错误('无法解析privateKey:'+ privKeyInfo.message);”在Windows中

网站源码admin22浏览0评论

我该如何解决“引发新错误('无法解析privateKey:'+ privKeyInfo.message);”在Windows中

我该如何解决“引发新错误('无法解析privateKey:'+ privKeyInfo.message);”在Windows中

当我运行测试时,我在Windows测试客户端中收到此错误

CypressError:cy.exec('npm run -s command')失败,因为该命令以非零代码退出。

传递{failOnNonZeroExit:false}以忽略退出代码失败。

有关失败的信息:代码:1

Stderr:C:\ Users \ Administrator.jenkins \ workspace \ cypress-execution \ node_modules \ ssh2 \ lib \ client.js:146抛出新的错误('无法解析privateKey:'+ privKeyInfo.message);

回答如下:

try... catch块包装代码

try {
   throw 'myException'; // your code goes here
}
catch (e) {
   console.log(e);
}
发布评论

评论列表(0)

  1. 暂无评论