小编vdr*_*erz的帖子

在 Visual Studio 代码中调试量角器测试时出现 Cucumber 错误,但在运行模式下一切正常

我在“视觉工作室代码”中对量角器黄瓜进行了基本设置,当我从终端运行它时,一切正常。但是,当我通过 Visual Studio 代码调试它时,它给了我版本错误。我还没有在全球范围内安装 Cucumber。我通过本地目录中的 npm install 安装了它,但错误消息仍然说我保留了两个不同的版本。怎么可能呢?

此错误消息也应该在运行模式下出现,为什么它只在调试模式下出现。请参阅下面的错误。

[18:34:15] I/launcher - Running 1 instances of WebDriver
logger.js:158
[18:34:15] I/local - Starting selenium standalone server...
logger.js:158
[18:34:16] I/local - Selenium standalone server started at 
http://10.12.2.155:60837/wd/hub
logger.js:158
Unhandled rejection Error:
debuggability.js:868

You appear to be executing an install of cucumber (most likely a global 
install)
that is different from your local install (the one required in your support 
files).
For cucumber to work, you need to execute the same install that …
Run Code Online (Sandbox Code Playgroud)

cucumber protractor visual-studio-code

3
推荐指数
1
解决办法
681
查看次数

标签 统计

cucumber ×1

protractor ×1

visual-studio-code ×1