1.Make sure you have Node.js installed and that you have already run npm init or have a node_modules
folder or package.json
file in the root of your project to ensure cypress is installed in the correct directory.
即安装Crypress的root目录里要有 node_modules 和 package.json 两个文件,含有这两个文件的目录就是cypress的root目录,无论这个目录是什么层级。启动Cpress 的命令 npx cypress open 也是要在这个root目录下执行。