最初,我遇到了问题,并发在Jenkins中不起作用。我在官方存储库中找到this问题,并建议将Testcafe Docker Image更新到最新版本(我从testcafe / testcafe存储库中获取)。但是,现在我遇到了另一个问题。我们有node-sass
包用于我测试的web应用程序,而node-sass
不能与Node 10.x一起使用并显示此错误消息
Module build failed: Error: Missing binding /tests/node_modules/node-sass/vendor/linux_musl-x64-64/binding.node
Node Sass could not find a binding for your current environment: Linux/musl 64-bit with Node.js 10.x
Found bindings for the following environments:
- Linux/musl 64-bit with Node.js 8.x
This usually happens because your environment has changed since running `npm install`.
Run `npm rebuild node-sass` to download the binding for your current environment.
是否有一些解决方法,或者Testcafe可以使用Node 8.x然后您可以为Docker Image提供此节点版本?
目前我们还没有计划为不同的节点版本创建多个testcafe docker镜像。但是,我创建了一个单独的feature request。请跟踪该票并投票。我们可以在将来添加到我们的计划中。