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
}
}
网上搜索 和检查日志
nvm 在我重新启动后工作了