相关疑难解决方法(0)

TestCafe Live没有运行

我在OsX上,使用节点10.1.5.3的nvm。Testscafe(不在线)工作正常,但我试图按照Testcafe-live上的说明进行操作

在解释如何在本地安装的步骤

如果您已经在本地将testcafe-live安装到项目中,请在package.json中添加一个npm脚本以运行测试:

它指的是package.json文件,我在脚本部分下添加了条目

   "scripts": {
    "test": "eslint ./**/*.js",
    "testcafe-live": "testcafe-live chrome tests/"
  },
Run Code Online (Sandbox Code Playgroud)

但是当我跑步时

npm运行testcafe-live

我得到这些错误:

npm ERR! path /Users/Thomas.Pavan/testcafe/package.json
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open '/Users/Thomas.Pavan/testcafe/package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/Thomas.Pavan/.npm/_logs/2019-03-11T14_58_28_946Z-debug.log …
Run Code Online (Sandbox Code Playgroud)

automated-tests web-testing npm e2e-testing testcafe

2
推荐指数
1
解决办法
207
查看次数