试图通过CLI运行Cypress,但出现错误

试图通过CLI运行Cypress,但出现错误,cypress,Cypress,今天是我试用Cypress的第一天,我正在关注他们的视频教程。我在我的终端上运行了以下命令,我得到了一个错误。它不允许我打开Cypress,并显示以下消息: 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 Reason

今天是我试用Cypress的第一天,我正在关注他们的视频教程。我在我的终端上运行了以下命令,我得到了一个错误。它不允许我打开Cypress,并显示以下消息:

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的starter。我没有安装过Cypress。

我做了更多的研究,找到了答案