Firebase-部署时云功能tslint错误

时间:2019-05-12 06:12:26

标签: firebase firebase-realtime-database deployment google-cloud-functions

我试图使用firebase CLI在firebase服务器中部署我的云函数,我使用typescript编写了这些函数,但是我的问题是当我尝试部署函数时会抛出这样的错误


> 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

我无法总结错误
有人可以帮我吗?

0 个答案:

没有答案