Ask Your Question
1

Why am I encountering a SyntaxError with the message "Unexpected string: re" and "use strict" when attempting to run firebase emulators on a newly installed system?

asked 2021-10-21 11:00:00 +0000

devzero gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2022-01-23 19:00:00 +0000

pufferfish gravatar image

This error is most likely caused by a missing or outdated version of the Node.js runtime environment on your system. The "use strict" syntax is a feature of ECMAScript 5, which is not fully supported in older versions of Node.js.

To resolve this issue, ensure you have installed the latest stable version of Node.js on your system. You can check your Node.js version by running the command node -v in your terminal or command prompt.

If you are still encountering the error after updating Node.js, try reinstalling the Firebase CLI and all dependencies with the command npm install -g firebase-tools. This command will update your global installation of the Firebase CLI and ensure all dependencies are up to date.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-10-21 11:00:00 +0000

Seen: 12 times

Last updated: Jan 23 '22