Цлинт не признается - Firebase - PullRequest
0 голосов
/ 03 декабря 2018

Я новичок в 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.Если вы знаете ошибку, ответьте мне, пожалуйста.

...