Angular4 Firebase函数'firebase deploy'错误“函数预部署错误:命令以非零退出代码4294963238终止”

时间:2018-01-19 17:25:14

标签: angular typescript firebase webpack google-cloud-functions

在Typescripts中编写我的第一个firebase函数后,我想部署该函数,但是这个错误没有在哪里。当我输入命令firebase deploy

i  deploying firestore, functions, hosting
Running command: npm --prefix $RESOURCE_DIR run lint
npm ERR! Windows_NT 10.0.17035
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program                             
Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "--prefix" 
"$RESOURCE_DIR" "run" "lint"
npm ERR! node v6.11.5
npm ERR! npm  v3.10.10
npm ERR! path F:\Projects\Angular 
Projects\<project_derectory>\$RESOURCE_DIR\package.json
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall open

npm ERR! enoent ENOENT: no such file or directory, open 'F:\Projects\Angular 
Projects\<project_derectory>\$RESOURCE_DIR\package.json'
npm ERR! enoent ENOENT: no such file or directory, open 'F:\Projects\Angular 
Projects\<project_derectory>\$RESOURCE_DIR\package.json'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! Please include the following file with any support request:
npm ERR!     F:\Projects\Angular Projects\<project_derectory>\npm-debug.log

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

我已按照this medium blog tutorial

的步骤进行操作

1 个答案:

答案 0 :(得分:0)

在这里,您可以尝试使用JavaScript。我认为他们有打字稿的问题

从以下评论中获取解决方案的人

Please edit the json file "firebase.json" in your firebase functions directory. change the "$RESOURCE_DIR" to "functions"