laravel - Apple Silicon M1 上的 Cypress.io 和 Yarn – "Cypress failed to start. This may be due to a missing library or dependency."

标签 laravel cypress yarnpkg

我尝试使用 Cypress 进行测试。在配备 Apple M1 芯片的 MacBook 上将 Laravel 和 Yarn 作为一个包(v8.3.1)。安装没问题,但是 cypress open 后我只能看到:

Cypress failed to start.

This may be due to a missing library or dependency. https://on.cypress.io/required-dependencies

Please refer to the error below for more details.
----------
rosetta error: /var/db/oah/c642c6...79172/Cypress.aot: attachment of code signature supplement failed: 1
----------
Platform: darwin (20.5.0)
Cypress Version: 8.3.1

我应该如何运行 Cypress?

最佳答案

我找到了解决方案。您所要做的就是将带有 M1 芯片的 Mac 升级到操作系统版本。 11.5.x(BigSur)

Cypress 与 BigSur 11.5.x 运行良好。

关于laravel - Apple Silicon M1 上的 Cypress.io 和 Yarn – "Cypress failed to start. This may be due to a missing library or dependency.",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69097958/

相关文章:

laravel - Pusher with Laravel Application along Queue Jobs working with QUEUE DRIVER set to database in env file instead sync

cypress - 如何限制 Cypress 中一项特定测试的屏幕截图频率?

cypress - 如何停止 cypress 中的光滑旋转木马

node.js - 安装 yarn 后 Npm 不工作(找不到 number-is-nan)

PHP : Laravel - Array push after using eloquent pluck method

php - 未定义的属性:Illuminate\Database\MySqlConnection::$name

php - 在 Laravel 中使用 Eloquent 访问特定列

javascript - Cypress Cucumber - 如何让我的步骤按顺序运行?

node.js - 在 Docker 中使用 Yarn 从私有(private)注册表安装包

每当运行操作时,Azure Artifact feed 都会导致 'incorrect integrity when fetching from the cache'