在Firebase上部署时发生错误

时间:2018-07-23 03:42:10

标签: firebase google-cloud-functions firebase-cli

我正在尝试将功能部署到Firebase

firebase deploy --only功能

Package.json

{   “ name”:“功能”,   “ description”:“ Firebase的云功能”,   “脚本”:{     “ lint”:“ eslint”,     “ serve”:“ firebase仅提供服务”功能,     “ shell”:“ firebase functions:shell”,     “ start”:“ npm run shell”,     “ deploy”:“ firebase deploy --only functions”,     “ logs”:“ firebase functions:log”   },   “依赖关系”:{     “ firebase-admin”:“〜5.12.1”,     “ firebase-functions”:“ ^ 1.0.3”   },   “ devDependencies”:{     “ eslint”:“ ^ 4.12.0”,     “ eslint-plugin-promise”:“ ^ 3.6.0”   },   “私人”:true }

我从node.js复制了错误,遇到了这个错误

i部署功能     运行命令:npm --prefix“ $ RESOURCE_DIR”运行lint     npm ERR!路径C:\ Users \ Pc1 \ Desktop \ TimeCard \ TimeCardA \ src \ app \ index \ firecast \%RESOURCE_DIR%\ package.json     npm ERR!代码ENOENT     npm ERR!埃尔诺-4058     npm ERR! syscall打开     npm ERR! enoent ENOENT:没有此类文件或目录,请打开“ C:\ Users \ Pc1 \ Desktop \ TimeCard \ TimeCardA \ src \ app \ index \ firecast \%RESOURCE_DIR%\ package.json”     npm ERR! enoent这与npm无法找到文件有关。     npm ERR!先天

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Pc1\AppData\Roaming\npm-cache\_logs\2018-07-23T03_23_10_348Z-debug.log

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

C:\Users\Pc1\Desktop\TimeCard\TimeCardA\src\app\index\firecast>npm run deploy
npm ERR! missing script: deploy

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Pc1\AppData\Roaming\npm-cache\_logs\2018-07-23T03_33_19_115Z-debug.log

0 个答案:

没有答案