无法识别Tslint-Firebase

时间:2018-12-03 12:48:08

标签: javascript angular typescript firebase tslint

我是Firebase的新手,我试图将应用程序Angular托管在Firebase中,但出现此错误:

"tslint" no se reconoce como un comando interno o externo,
 programa o archivo por lotes ejecutable.
 npm ERR! code ELIFECYCLE
 npm ERR! errno 1
 npm ERR! functions@ lint: `tslint --project tsconfig.json`
 npm ERR! Exit status 1
 npm ERR!
 npm ERR! Failed at the functions@ lint script.
 npm ERR! This is probably not a problem with npm. There is likely 
 additional
 npm ERR! A complete log of this run can be found in:
 npm ERR!     C:\Users\miguel-angel.barraga\AppData\Roaming\npm-cache\_logs\20
 Error: functions predeploy error: Command terminated with non-zero exit code1
 Having trouble? Try firebase deploy --help

这是我的firebase.json:

{
"hosting": {
"public": "public",
"ignore": [
  "firebase.json",
  "**/.*",
  "**/node_modules/**"
],
"rewrites": [
  {
    "source": "**",
    "destination": "/index.html"
  }
]
},
"database": {
  "rules": "database.rules.json"
 },
 "firestore": {
   "rules": "firestore.rules",
   "indexes": "firestore.indexes.json"
 },
 "functions": {
   "predeploy": [
     "npm --prefix \"%RESOURCE_DIR%\" run lint",
     "npm --prefix \"%RESOURCE_DIR%\" run build"
   ],
   "source": "functions"
 },
 "storage": {
   "rules": "storage.rules"
 }
}

我不知道这是什么问题,我已经按照Google Firebase页面中的托管教程进行操作。 我已经更新了npm,已经安装了tslint。 如果您知道错误响应我,请。

0 个答案:

没有答案