简体   繁体   English

在Firebase上部署WebApp时发生意外错误

[英]Unexpected error when deploying webapp on firebase

I try to host my static Website on Firebase. 我尝试将我的静态网站托管在Firebase上。 I run through the tutorial on the official Firebase site. 我在Firebase官方网站上浏览了该教程。

I tried to deploy it, changed the firebase.json file, but nothing helped 我尝试部署它,更改了firebase.json文件,但没有任何帮助

"hosting": {
  "public": "public", 
  "ignore": [
    "firebase.json",
  ]
}

this is my firebase.json file 这是我的firebase.json文件

this is the error message when I run firebase deploy: 这是我运行firebase deploy时的错误消息:

mp@linux:~/Documents/Website/Codebytessoftware$ firebase deploy

Error: There was an error loading firebase.json:

Unexpected token ':' at 1:10
"hosting": {
         ^
File: "/home/mp/Documents/Website/Codebytessoftware/firebase.json"

Having trouble? Try firebase deploy --help

Your firebase.json is not a valid json file. 您的firebase.json不是有效的json文件。 Try this: 尝试这个:

{
  "hosting": {
    "public": "public", 
    "ignore": [
      "firebase.json"
    ]
  }
}

You can check if your json file is valid json in here 您可以在这里检查您的json文件是否有效json

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Firebase JSON 导入错误 意外令牌“:” - Firebase JSON import error Unexpected token “:” 在Firebase上部署React应用程序时,“ EACCES:权限被拒绝” - “EACCES: permission denied” when deploying a React app on Firebase 在 vercel 上部署 Next.js 时出错:JSON 中的意外令牌 R 在 position 0 - Error while deploying Next.js on vercel: Unexpected token R in JSON at position 0 Angular-将JSON文件部署到Firebase - Angular - Deploying a JSON file to firebase 部署到 Firebase 托管中的特定目标 - Deploying to a specific target in Firebase Hosting 在 Zeit 上使用 gatsby-source-buttercms 部署 gatsby 应用程序时出错 - Error when deploying the gatsby app with gatsby-source-buttercms on Zeit 在Android中更改Firebase数据库时出错 - Error when changing the Firebase database in Android 将 Firebase 连接到 Microsoft Power BI 时出错 - Error when connecting Firebase to Microsoft Power BI Error: SyntaxError: Unexpected token C in JSON at position 33 in rule attachments while doing on google firebase - Error: SyntaxError: Unexpected token C in JSON at position 33 in rule attachments while doing on google firebase 错误-变得更大的JSON文件时出现意外令牌 - ERROR - unexpected token when getting bigger JSON file
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM