3.17.4
OS X 10.12.6
节点 -v
v8.9.3
树 。
`` tree .
.
|-- firebase.json
-- 公开
`--index.html
1个目录,2个文件
ls -a
``` ls -a
.firebaserc firebase.json public
然后我运行firebase deploy
,
请使用 --debug 运行并提供结果。 您是否有权访问
冷杉演示项目项目?
在Sun,2018年1月28日,上午6:59 kimown [email protected]写道:
版本信息
3.17.4
重现步骤OS X 10.12.6
节点 -vv8.9.3
树 。
.
|-- firebase.json
-- public
-- index.html1个目录,2个文件
ls -a
.firebaserc firebase.json 公开
然后我运行 firebase deploy,
[图像:图像]
https://user-images.githubusercontent.com/7932380/35483562-97d06a20-047e-11e8-9a66-ffb69ed3de04.png
预期行为 实际行为—
您收到此消息是因为您订阅了此线程。
直接回复本邮件,在GitHub上查看
https://github.com/firebase/firebase-tools/issues/641 ,或静音
线
https://github.com/notifications/unsubscribe-auth/AAAD_kXDHZOyDuR8AwVCt56Q1OW61NDWks5tPItmgaJpZM4RvuUi
.
@mbleigh
firebase 部署 --debug
=== Deploying to 'fir-demo-project'...
i deploying hosting
i hosting: preparing public directory for upload...
[2018-01-29T01:53:16.132Z] >>> HTTP REQUEST PUT https://deploy.firebase.com/v1/hosting/fir-demo-project/uploads/-L3zb_9i-Z15MlRlbtCs?fileCount=1&message=
Mon Jan 29 2018 09:53:16 GMT+0800 (CST)
[2018-01-29T01:53:17.738Z] <<< HTTP RESPONSE 403 server=nginx, date=Mon, 29 Jan 2018 01:53:17 GMT, content-type=application/json; charset=utf-8, content-length=89, connection=close, access-control-allow-origin=*, access-control-allow-methods=GET, PUT, POST, DELETE, OPTIONS, strict-transport-security=max-age=31556926; includeSubDomains; preload, x-content-type-options=nosniff
[2018-01-29T01:53:17.738Z] <<< HTTP RESPONSE BODY code=403, message=The caller does not have permission, status=PERMISSION_DENIED
Error: HTTP Error: 403, Unknown Error
[2018-01-29T01:53:17.741Z] Error Context: {
"body": {
"code": 403,
"message": "The caller does not have permission",
"status": "PERMISSION_DENIED",
"error": {
"message": "Unknown Error"
}
},
"response": {
"statusCode": 403,
"body": {
"code": 403,
"message": "The caller does not have permission",
"status": "PERMISSION_DENIED",
"error": {
"message": "Unknown Error"
}
},
"headers": {
"server": "nginx",
"date": "Mon, 29 Jan 2018 01:53:17 GMT",
"content-type": "application/json; charset=utf-8",
"content-length": "89",
"connection": "close",
"access-control-allow-origin": "*",
"access-control-allow-methods": "GET, PUT, POST, DELETE, OPTIONS",
"strict-transport-security": "max-age=31556926; includeSubDomains; preload",
"x-content-type-options": "nosniff"
},
"request": {
"uri": {
"protocol": "https:",
"slashes": true,
"auth": null,
"host": "deploy.firebase.com",
"port": 443,
"hostname": "deploy.firebase.com",
"hash": null,
"search": "?fileCount=1&message=",
"query": "fileCount=1&message=",
"pathname": "/v1/hosting/fir-demo-project/uploads/-L3zb_9i-Z15MlRlbtCs",
"path": "/v1/hosting/fir-demo-project/uploads/-L3zb_9i-Z15MlRlbtCs?fileCount=1&message=",
"href": "https://deploy.firebase.com/v1/hosting/fir-demo-project/uploads/-L3zb_9i-Z15MlRlbtCs?fileCount=1&message="
},
"method": "PUT"
}
}
}
火力基地清单
firebase list
┌─────────────────────────────────┬───────────────────────┬─────────────┐
│ Name │ Project ID / Instance │ Permissions │
├─────────────────────────────────┼───────────────────────┼─────────────┤
│ Firebase Demo Project (current) │ fir-demo-project │ Viewer │
├─────────────────────────────────┼───────────────────────┼─────────────┤
│ example │ example-7630b │ Owner │
└─────────────────────────────────┴───────────────────────┴─────────────┘
我认为问题是Viewer
权限?
我正在关注本教程:https ://firebase.google.com/docs/hosting/quickstart
是的,您将无法部署到只有“查看者”权限的项目。 您应该能够通过执行以下操作进行部署:
firebase use example-7630b
firebase deploy
@mbleigh
谢谢^_^
我有一个类似的问题。 实际上,我在 CLI 中登录了不同的 Firebase 帐户。 使用正确的 Firebase 帐户运行firebase logout
和firebase login
,它运行良好。
@mbleigh的评论帮助我弄清楚发生了什么。
我已经使用 firebase 登录,但使用另一个帐户。
所以我需要使用以下方法注销: firebase logout
然后firebase login
再次使用适当的帐户。
之后,我想使用firebase projects:list
列出属于该用户的所有项目。
我有一个类似的问题。 实际上,我在 CLI 中登录了不同的 Firebase 帐户。 使用正确的 Firebase 帐户运行
firebase logout
和firebase login
,它运行良好。
这对我有用。 谢谢!
有同样的问题,但重新启动我的电脑然后做firebase login
对我有用。 谢谢!
只是重试对我有用🤷
我遇到过同样的问题。 但我实际上并没有在管理控制台中配置函数。 我所要做的就是转到控制台> Cloud Functions 并单击Get Started
并完成提示。
最有用的评论
是的,您将无法部署到只有“查看者”权限的项目。 您应该能够通过执行以下操作进行部署: