我已经检查了S.O上的答案,到目前为止还没有一个对我有效。
我把我的问题放在视频里了。Watch it here
哪里出了问题?它昨天工作得很好吗?
到目前为止,我所做的是:
重新安装柏树
尝试使用:.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发布于 2021-01-27 01:39:12
我在我的Mac上尝试了以下命令,它起作用了:
npx cypress open发布于 2019-10-07 19:26:23
我一直在尝试你正在使用的东西,并进行了一些实验:./node_modules/.bin/cypress open在我看来运行得很好(注意前面的斜杠,而不是后面的斜杠)
.node_modules/.bin/cypress open不适用于我(请注意,这是您在视频中使用的命令,但替换了斜杠)。在你关于stackoverflow的问题中,你在node_modules之前使用了额外的/,但在你的视频中你没有这样做。
也可以通过OSX启动器打开cypress,然后选择automation目录。
发布于 2020-05-08 18:14:45
试着跑
npm install 然后尝试再次运行它。
https://stackoverflow.com/questions/58267858
复制相似问题