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

get "Unexpected token function" error when installing ember-cli-mirage #2125

Open
dinager opened this issue Feb 19, 2021 · 1 comment
Open

Comments

@dinager
Copy link

dinager commented Feb 19, 2021

I am installing the ember-cli-mirage
ember install ember-cli-mirage
node version: v6.17.1
ember version: 2.11
I get this error:

Installed packages for tooling via npm.
Unexpected token function
/Users/dsolomon/Documents/learn-ember/super-rentals/node_modules/@embroider/core/node_modules/broccoli-persistent-filter/lib/index.js:83
async function invoke(context, fn, args) {
      ^^^^^^^^

SyntaxError: Unexpected token function
    at createScript (vm.js:56:10)
    at Object.runInThisContext (vm.js:97:10)
    at Module._compile (module.js:549:28)
    at Object.Module._extensions..js (module.js:586:10)
    at Module.load (module.js:494:32)
    at tryModuleLoad (module.js:453:12)
    at Function.Module._load (module.js:445:3)
    at Module.require (module.js:504:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/Users/dsolomon/Documents/learn-ember/super-rentals/node_modules/@embroider/core/src/template-compiler.js:15:54)
@cah-brian-gantzler
Copy link
Collaborator

Node 6 is pretty old. The current version says Node >=10.

Looks like 1.1.8 removed node 6 here

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