部署Firebase时缺少脚本:lint错误

时间:2020-10-28 21:12:47

标签: firebase lint

每次我尝试部署Firebase项目时,都会出现此错误。

Noahs-MBP-2:collegiateclubdb noahlindner$ firebase deploy

=== Deploying to 'collegiateclubdb'...

i  deploying database, functions, hosting
Running command: npm --prefix "$RESOURCE_DIR" run lint
npm ERR! missing script: lint

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/noahlindner/.npm/_logs/2020-10-28T21_04_05_375Z-debug.log

Error: functions predeploy error: Command terminated with non-zero exit code1
Noahs-MBP-2:collegiateclubdb noahlindner$ 

上面说的是,我已经安装了短绒棉布,并且包括了我的脚本

"scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject",
    "scripts": "eslint.js"
},

在执行firebase init命令后,从未有人问过要使用默认的短毛绒

0 个答案:

没有答案