Firebase - ошибка функции облака при развертывании - PullRequest
0 голосов
/ 12 мая 2019

Я пытался развернуть свою облачную функцию на сервере Firebase с помощью Firebase CLI, я написал эти функции с использованием машинописного текста, но моя проблема в том, что когда я пытаюсь развернуть свою функцию, она выдает ошибку, подобную этой


> functions@ lint C:\Users\raj kumar\functions
> tslint --project tsconfig.json

'tslint' is not recognized as an internal or external command,
operable program or batch file.
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 logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\raj kumar\AppData\Roaming\npm-cache\_logs\2019-05-12T05_59_43_176Z-debug.log
events.js:167
      throw er; // Unhandled 'error' event
      ^

Error: spawn npm --prefix "%RESOURCE_DIR%" run lint ENOENT
    at notFoundError (C:\Users\raj kumar\.cache\firebase\cli\node_modules\firebase-tools\node_modules\cross-env\node_modules\cross-spawn\lib\enoent.js:6:26)
    at verifyENOENT (C:\Users\raj kumar\.cache\firebase\cli\node_modules\firebase-tools\node_modules\cross-env\node_modules\cross-spawn\lib\enoent.js:40:16)
    at ChildProcess.cp.emit (C:\Users\raj kumar\.cache\firebase\cli\node_modules\firebase-tools\node_modules\cross-env\node_modules\cross-spawn\lib\enoent.js:27:25)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:237:12)
Emitted 'error' event at:
    at ChildProcess.cp.emit (C:\Users\raj kumar\.cache\firebase\cli\node_modules\firebase-tools\node_modules\cross-env\node_modules\cross-spawn\lib\enoent.js:30:37)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:237:12)

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

Я не смог сделать вывод об ошибке
Кто-нибудь может мне помочь с этим?

...