An Unexpected Error Has Occurred. · Issue #760 · Firebase ... - GitHub

Skip to content Dismiss alert {{ message }} / firebase-tools Public
  • Notifications You must be signed in to change notification settings
  • Fork 952
  • Star 4k
  • Code
  • Issues 437
  • Pull requests 195
  • Discussions
  • Actions
  • Projects
  • Wiki
  • Security
  • Insights
Additional navigation options New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Sign up for GitHub

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jump to bottom Error: An unexpected error has occurred. #760 Closed ghost opened this issue May 3, 2018 · 3 comments Closed Error: An unexpected error has occurred. #760 ghost opened this issue May 3, 2018 · 3 comments

Comments

@ghost Copy link

ghost commented May 3, 2018 edited by ghost Loading

Version info

3.18.4

Platform Information

macOS version 10.13.2

Steps to reproduce

After do all things until here https://codelabs.developers.google.com/codelabs/firebase-web/index.html#3 I've typed firebase serve

Expected behavior

Error: An unexpected error has occurred.

Actual behavior

mbp:web-start narry$ firebase serve --debug [2018-05-03T12:08:31.652Z] ---------------------------------------------------------------------- [2018-05-03T12:08:31.654Z] Command: /usr/local/bin/node /usr/local/bin/firebase serve --debug [2018-05-03T12:08:31.654Z] CLI Version: 3.18.4 [2018-05-03T12:08:31.655Z] Platform: darwin [2018-05-03T12:08:31.655Z] Node Version: v8.11.1 [2018-05-03T12:08:31.655Z] Time: Thu May 03 2018 21:08:31 GMT+0900 (JST) [2018-05-03T12:08:31.655Z] ----------------------------------------------------------------------

[2018-05-03T12:08:31.665Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"] [2018-05-03T12:08:31.665Z] > authorizing via signed-in user [2018-05-03T12:08:31.667Z] >>> HTTP REQUEST GET https://admin.firebase.com/v1/projects/friendlychat-c03c0

Thu May 03 2018 21:08:31 GMT+0900 (JST) [2018-05-03T12:08:33.613Z] <<< HTTP RESPONSE 200 server=nginx, date=Thu, 03 May 2018 12:08:33 GMT, content-type=application/json; charset=utf-8, content-length=123, connection=close, x-content-type-options=nosniff, strict-transport-security=max-age=31536000; includeSubdomains, cache-control=no-cache, no-store [2018-05-03T12:08:33.614Z] >>> HTTP REQUEST GET https://admin.firebase.com/v1/database/friendlychat-c03c0/tokens

Thu May 03 2018 21:08:33 GMT+0900 (JST) [2018-05-03T12:08:34.279Z] <<< HTTP RESPONSE 200 server=nginx, date=Thu, 03 May 2018 12:08:34 GMT, content-type=application/json; charset=utf-8, content-length=268, connection=close, x-content-type-options=nosniff, strict-transport-security=max-age=31536000; includeSubdomains, cache-control=no-cache, no-store [2018-05-03T12:08:34.280Z] >>> HTTP REQUEST GET https://cloudresourcemanager.googleapis.com/v1/projects/friendlychat-c03c0

Thu May 03 2018 21:08:34 GMT+0900 (JST) [2018-05-03T12:08:35.262Z] <<< HTTP RESPONSE 200 content-type=application/json; charset=UTF-8, vary=X-Origin, Referer, Origin,Accept-Encoding, date=Thu, 03 May 2018 12:08:35 GMT, server=ESF, cache-control=private, x-xss-protection=1; mode=block, x-frame-options=SAMEORIGIN, x-content-type-options=nosniff, alt-svc=hq=":443"; ma=2592000; quic=51303433; quic=51303432; quic=51303431; quic=51303339; quic=51303335,quic=":443"; ma=2592000; v="43,42,41,39,35", accept-ranges=none, connection=close

=== Serving from '/Users/narry/Downloads/friendlychat-web-master/web-start'...

[2018-05-03T12:08:36.871Z] Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/firebase-tools/node_modules/@google-cloud/functions-emulator/logs' at Object.fs.mkdirSync (fs.js:885:18) at Object.assertLogsPath (/usr/local/lib/node_modules/firebase-tools/node_modules/@google-cloud/functions-emulator/src/emulator/logs.js:65:10) at new Controller (/usr/local/lib/node_modules/firebase-tools/node_modules/@google-cloud/functions-emulator/src/cli/controller.js:77:32) at FunctionsEmulator.start (/usr/local/lib/node_modules/firebase-tools/lib/functionsEmulator.js:111:21) at Object.start (/usr/local/lib/node_modules/firebase-tools/lib/serve/functions.js:9:29) at /usr/local/lib/node_modules/firebase-tools/lib/serve/index.js:17:21 at arrayMap (/usr/local/lib/node_modules/firebase-tools/node_modules/lodash/lodash.js:639:23) at Function.map (/usr/local/lib/node_modules/firebase-tools/node_modules/lodash/lodash.js:9554:14) at _serve (/usr/local/lib/node_modules/firebase-tools/lib/serve/index.js:15:7) at Command._action (/usr/local/lib/node_modules/firebase-tools/commands/serve.js:48:12)

Error: An unexpected error has occurred.

All reactions @ghost Copy link Author

ghost commented May 3, 2018

I've also tried with Ubuntu 14.04 LTS but it become same result. Do I have any way to run?

All reactions @laurenzlong Copy link Contributor

laurenzlong commented May 3, 2018

How did you install firebase-tools? Please do not install with "sudo", you can try following these tips when troublehshooting: https://docs.npmjs.com/getting-started/fixing-npm-permissions

👍 3 Ej-leone, chrisrcardone, and KRUTARTH6774 reacted with thumbs up emoji All reactions
  • 👍 3 reactions
@ghost Copy link Author

ghost commented May 4, 2018

I installed with sudo and I troubleshooted with that page. Then it worked!!! Thanks!!!

All reactions @ghost ghost closed this as completed May 4, 2018 joehan pushed a commit that referenced this issue Apr 26, 2024 @mbleigh Adds initial downloadable emulator support for FireMAT (#760) fb612f6 This issue was closed. Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment Assignees No one assigned Labels None yet Projects None yet Milestone No milestone Development

No branches or pull requests

1 participant @laurenzlong You can’t perform that action at this time.

Từ khóa » C03c0