今天是我试用赛普拉斯的第一天,我正在关注他们在website上获得的其中一个视频教程。我在终端中运行以下命令,但出现错误。它不会让我打开赛普拉斯,并显示以下消息:
Cypress cannot run because this binary file does not have executable permissions here:
/Users/name/Library/Caches/Cypress/3.5.0/Cypress.app/Contents/MacOS/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.
我将脚本添加到我的package.json文件夹中,如下所示:
"scripts": {
"build": "webpack",
"watch": "webpack --watch",
"serve": "json-server db.json",
"dev": "concurrently \"npm run watch\" \"npm run serve\"",
"cypress: "cypress open"
},
有人知道如何解决该问题吗?我要用来遵循该教程的项目是我从Cypress的GitHub页面上克隆的一个项目,并且它已经由Cypress安装了其启动程序file。我没有一次安装赛普拉斯。