我以前已经成功运行了测试,但是现在我遇到了这个错误。
An error occurred while trying to start the Nightwatch Runner: Invalid testing environment specified: chrome\. Available environments are: chrome, firefox, edge
at Module._compile (internal/modules/cjs/loader.js:776:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
我删除了Node目录并重新安装。我加了一个。在网络驱动程序路径的开头。