首页 > 解决方案 > 我无法在 Mac 上打开 Cypress:找不到 Cypress

问题描述

我已经检查了关于 SO 的答案,到目前为止,没有一个对我有用。

我把我的问题放在视频里。 在这里观看

什么地方出了错?昨天还好好的吗?

到目前为止我所做的:

重新安装柏树

试图打开:.node_modules\.bin\cypress open

然后尝试: npx cypress open

收到以下消息

No version of Cypress is installed in: /Users/jacquelinegeorge/Library/Caches/Cypress/3.4.0/Cypress.app

Please reinstall Cypress by running: cypress install

----------

Cypress executable not found at: /Users/my_name/Library/Caches/Cypress/3.4.0/Cypress.app/Contents/MacOS/Cypress

----------

Platform: darwin (18.7.0)
Cypress Version: 3.4.0

标签: javascriptnpmautomated-testscypress

解决方案


我在我的 Mac 上尝试了以下命令并且它有效:

npx cypress open

推荐阅读