gpt4 book ai didi

node.js - Node-sass 没有与 TestCafe Docker Image 中使用的 Node 版本绑定(bind)

转载 作者:太空宇宙 更新时间:2023-11-04 00:00:48 24 4
gpt4 key购买 nike

最初,我遇到了一个问题,并发性在 Jenkins 中不起作用。我找到this官方存储库中存在问题,并按照建议将 Testcafe Docker Image 更新到最新版本(我从 testcafe/testcafe 存储库获取)。然而,现在我面临另一个问题。我们有用于我测试的 Web 应用程序的 node-sass 包,但 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,然后您可以提供带有此 Node 版本的 Docker Image?

最佳答案

目前我们没有计划为不同的 Node 版本创建多个 testcafe docker 镜像。但是,我创建了一个单独的 feature request 。请跟踪该票并为其投票。我们可以将其添加到我们 future 的计划中。

关于node.js - Node-sass 没有与 TestCafe Docker Image 中使用的 Node 版本绑定(bind),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54785039/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com