尝试运行脚本时出现zsh:abort npm start错误

时间:2020-08-08 09:23:15

标签: npm mocha homebrew npm-scripts

当我尝试运行脚本时,我不断收到错误消息“ zsh:abort npm start”。运行摩卡测试时出现错误。

我正在使用Node v10.22,并使用Homebrew工具安装了Node.js和npm。

我尝试卸载并重新安装Node和npm,但还是没有运气。您能建议如何解决这个问题吗?

谢谢!

代码段: package.json

{
"name": "api-tests",
"scripts": {
    "postinstall": "npm run build",
    "build": "tsc",
    "start": "npm run mocha-test target/dist/**/**.js",
},
"dependencies": {
    "@types/chai": "^4.1.7",
    "@types/mocha": "^5.2.7",
    "@types/node": "^14.0.1",
    "@types/uuid": "^7.0.3",
    "axios": "^0.19.2",
    "chai": "^4.2.0",
    "form-data": "^3.0.0",
    "mocha": "^6.2.0",
    "mocha-junit-reporter": "^1.23.1",
    "mocha-multi-reporters": "^1.1.7",
    "mocha-typescript": "^1.1.17",
    "mochawesome": "^4.0.1",
    "source-map-support": "^0.5.12",
    "typescript": "^3.9.2",
    "uuid": "^8.0.0"
},
"devDependencies": {
    "@typescript-eslint/parser": "^2.6.1",
    "@typescript-eslint/eslint-plugin": "^2.33.0",
    "eslint": "^7.0.0",
    "eslint-config-airbnb-typescript": "^7.2.1",
    "eslint-plugin-import": "^2.20.2",
    "eslint-plugin-jsx-a11y": "^6.2.3",
    "eslint-plugin-react": "^7.16.0",
    "eslint-plugin-react-hooks": "^1.7.0"
}

}

当我运行命令npm start时,我得到以下输出

Reading Environment
Creating TestRepository
zsh: abort npm start

此后,脚本执行终止。

0 个答案:

没有答案