Firebase部署功能和网站托管错误

时间:2018-01-31 07:51:00

标签: firebase npm google-cloud-functions

i  deploying database, storage, firestore, functions, hosting
Running command: npm --prefix $RESOURCE_DIR run lint
npm ERR! path D:\public\$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 'D:\public\$RESOURCE_DIR
\package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\bonrix\AppData\Roaming\npm-cache\_logs\2018-01-31T07_42_27
_103Z-debug.log

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

D:\public>

=============================================== ===== 检查附件$RESOURCE_DIR folder have no file named package.json

1 个答案:

答案 0 :(得分:1)

因为它显示了日志,你的目录中没有package.json。 顺便说一下,你应该通过npm安装firebase-tools globaly从项目的根目录运行它。 然后从那里(firebase)指南做所有步骤。