nodejs / repl

REPL rewrite for Node.js ✨🐢🚀✨
MIT License
179 stars 25 forks source link

Unexpected token { #23

Closed jonahsnider closed 5 years ago

jonahsnider commented 6 years ago

Attempting to run

C:\Users\username>node-prototype-repl

On Windows 10 with Node.js v8.12.0, the latest Node.js LTS version (as of writing), results in this fatal error:

C:\Users\username\AppData\Roaming\npm\node_modules\@nodejs\repl\src\repl.js:227
          } catch {} // eslint-disable-line no-empty
                  ^

SyntaxError: Unexpected token {
    at createScript (vm.js:80:10)
    at Object.runInThisContext (vm.js:139:10)
    at Module._compile (module.js:616:28)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (C:\Users\username\AppData\Roaming\npm\node_modules\@nodejs\repl\src\index.js:7:14)
devsnek commented 6 years ago

At the moment this is being developed against Node.js nightly builds (and it should also run on 10.x stable), as it is intended to eventually replace the repl built into node. If you want to open a pr and change it i would accept it but i can't guarantee the compatibility would stay as more code is added.

devsnek commented 5 years ago

node 8 is no longer active lts