无法在 Ubuntu 20 (WSL) 上 运行 赛普拉斯

Unable to run Cypress on Ubuntu 20 (WSL)

无法 运行 cypress 4.12.0 Ubuntu 20 (WSL)

我收到此错误:

Cypress cannot run because this binary file does not have executable permissions here:

/home/****/.cache/Cypress/4.12.0/Cypress/Cypress

Reasons this may happen:

- node was installed as 'root' or with 'sudo'
- the cypress npm package as 'root' or with 'sudo'

Please check that you have the appropriate user permissions.

----------

Platform: linux (Ubuntu - 20.04)
Cypress Version: 4.12.0

我不是有经验的 Linux 用户。 我尝试重新安装 cypress 和 node - 没有任何帮助。

我试过 this solution,但找不到 Cypress.app。似乎 /Users/***/Library/Caches/Cypress/4.0.2/Cypress.app/Contents/MacOS/Cypress 是过时的路径

看来我必须使用以下命令安装 nxnpm i -g @nrwl/cli