【发布时间】:2023-01-25 03:21:32
【问题描述】:
刚开始玩 Playwright。安装并决定运行它附带的测试。无法弄清楚为什么会失败。
$ npx playright tests
[11:09:04]
npm ERR! could not determine executable to run
FAIL
我仔细检查了是否安装了 Typescript
$ tsc -v
Version 4.7.4
和名字
$ npm -v
8.1.0
我在这个网站上查找了解决方案,它提到删除 .git/hooks 文件——我没有那个。
package.json 很简单:
{
"name": "project01",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {},
"author": "",
"license": "ISC",
"devDependencies": {
"@playwright/test": "^1.25.2"
}
}
我到底错过了什么?做了很多谷歌搜索,但仍然卡住了。 任何帮助,将不胜感激。
【问题讨论】:
标签: npm playwright npx