Skip to content
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.

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

Error Running NPM Run Dev #36

Open
kjohnson2021 opened this issue Apr 23, 2024 · 1 comment
Open

Error Running NPM Run Dev #36

kjohnson2021 opened this issue Apr 23, 2024 · 1 comment

Comments

@kjohnson2021
Copy link

after running npm install, then trying to execute npm run dev, I get the following error in my Mac terminal window:

SyntaxError: Unexpected reserved word
at Loader.moduleStrategy (internal/modules/esm/translators.js:122:18)
at async link (internal/modules/esm/module_job.js:42:21)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] dev: vite
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] dev script.

@ilseojeon
Copy link

ilseojeon commented Jun 29, 2024

after running npm install, then trying to execute npm run dev, I get the following error in my Mac terminal window:

SyntaxError: Unexpected reserved word at Loader.moduleStrategy (internal/modules/esm/translators.js:122:18) at async link (internal/modules/esm/module_job.js:42:21) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] dev: vite npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] dev script.

Hey, I resolved this error by updating node to 20.x

Refer command lines here : https://github.com/nodesource/distributions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants