小编rak*_*tel的帖子

部署时 npm err 缺少脚本 lint

运行以下命令时:

npm --prefix "$RESOURCE_DIR" run lint
Run Code Online (Sandbox Code Playgroud)

它返回以下错误:

npm ERR! missing script: lint

npm ERR! A complete log of this run can be found in:

npm ERR! C:\Users\HP\AppData\Roaming\npm-cache\_logs\2018-04-13T01_27_59_009Z-debug.log

Error: functions predeploy error: Command terminated with non-zero exit code1

这是我的package.json

  "name": "functions",
  "description": "Cloud Functions for Firebase",
  "scripts": {
    "serve": "firebase serve --only functions",
    "shell": "firebase functions:shell",
    "start": "npm run shell",
    "deploy": "firebase deploy --only functions",
    "logs": "firebase functions:log"
  },
  "dependencies": {
    "firebase-admin": "~5.12.0",
    "firebase-functions": "^1.0.1"
  },
  "private": true
}
Run Code Online (Sandbox Code Playgroud)

node.js npm

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

标签 统计

node.js ×1

npm ×1