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

Getting startup error when running npm start #71

Open
sum1991 opened this issue Dec 25, 2021 · 3 comments
Open

Getting startup error when running npm start #71

sum1991 opened this issue Dec 25, 2021 · 3 comments

Comments

@sum1991
Copy link

sum1991 commented Dec 25, 2021

Hi @ryanmurakami following your tutorial for aws dev cert.. but running into this error.. when runing npm start.
node version v10.16.0

❯ node index.js
/Users/lagadas/Documents/awsTutorial/pizza-luvrs/index.js:25
console.error(Reason: ${reason.message}, Stack: ${reason?.stack})
^

SyntaxError: Unexpected token .
at Module._compile (internal/modules/cjs/loader.js:721:23)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:829:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)

@ryanmurakami
Copy link
Owner

Hi @sum1991, Thanks for creating the issue! This is an error with earlier versions of Node.js. Can you update to version 14+ and try again? Thanks!

@adarkkiss
Copy link

Hello I am also having this issue with the latest update and it keeps giving me errors that it can't be found when everything is in the same file

@dextel2
Copy link

dextel2 commented Apr 4, 2022

@sum1991 and @adarkkiss I have cloned the repo and run the code and it works perfectly fine with node v16.14.0.

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

4 participants