启动 Firebase 实时数据库模拟器时出现不存在的错误

问题描述 投票:0回答:1

firebase 返回错误

> (Use `node --trace-deprecation ...` to show where the warning was created)
i  emulators: Starting emulators: database
i  database: Database Emulator logging to database-debug.log
i  ui: Emulator UI logging to ui-debug.log
!  database: database.rules.json:Unable to parse JSON: SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON
!  database: Failed to update rules
i  emulators: Shutting down emulators.
i  ui: Stopping Emulator UI
!  Emulator UI has exited upon receiving signal: SIGINT
i  database: Stopping Database Emulator
!  Database Emulator has exited upon receiving signal: SIGINT
i  hub: Stopping emulator hub
i  logging: Stopping Logging Emulator

Error: Failed to load initial Database Emulator rules:
database.rules.json:Unable to parse JSON: SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON

规则:

{
  "rules": {
    ".read": true,
    ".write": false
  }
}

网上搜索 和检查日志

firebase firebase-realtime-database firebase-tools
1个回答
0
投票

nvm 在我重新启动后工作了

© www.soinside.com 2019 - 2024. All rights reserved.