在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
的步骤进行操作
答案 0 :(得分:0)
在这里,您可以尝试使用JavaScript。我认为他们有打字稿的问题
从以下评论中获取解决方案的人
Please edit the json file "firebase.json" in your firebase functions directory. change the "$RESOURCE_DIR" to "functions"