kolbytn / mindcraft

MIT License
1.79k stars 223 forks source link

How? #149

Open Switchgame16 opened 2 months ago

Switchgame16 commented 2 months ago

I'm on mac and when i try to run node main.js it says: PAR08LAP94-Phil-Egenthal-15-MBP-2:~ philegenthal$ node main.js file:///Users/philegenthal/main.js:1 book

SyntaxError: Invalid or unexpected token at compileSourceTextModule (node:internal/modules/esm/utils:337:16) at ModuleLoader.moduleStrategy (node:internal/modules/esm/translators:166:18) at callTranslator (node:internal/modules/esm/loader:436:14) at ModuleLoader.moduleProvider (node:internal/modules/esm/loader:442:30) at async ModuleJob._link (node:internal/modules/esm/module_job:106:19)

Node.js v22.6.0

kolbytn commented 2 months ago

I unfortunately have not personally tested the repo on mac. It looks like you're running main.js outside of the repo directory. Make sure you have the entire repo installed as described in the readme.