【问题标题】:Firebase Deploy Function and website hosting Error [duplicate]Firebase 部署功能和网站托管错误 [重复]
【发布时间】:2018-07-10 06:19:57
【问题描述】:
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

【问题讨论】:

    标签: firebase npm google-cloud-functions


    【解决方案1】:

    当它显示日志时,您的目录中没有 package.json。 顺便说一句,您应该从项目的根目录运行它,并通过 npm 安装 firebase-tools globaly。 然后从那里(firebase)指南执行所有步骤。

    猜你喜欢
    • 2017-08-14
    • 2021-06-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-12-01
    • 2018-08-20
    • 1970-01-01
    相关资源
    最近更新 更多