pizza-luvrs icon indicating copy to clipboard operation
pizza-luvrs copied to clipboard

Getting startup error when running npm start

Open sum1991 opened this issue 3 years ago • 3 comments

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)

sum1991 avatar Dec 25 '21 17:12 sum1991

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!

ryanmurakami avatar Dec 27 '21 17:12 ryanmurakami

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

adarkkiss avatar Jan 27 '22 00:01 adarkkiss

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

dextel2 avatar Apr 04 '22 12:04 dextel2