preactjs / preact-cli

😺 Your next Preact PWA starts in 30 seconds.

Home Page:https://cli-demo-next.preactjs.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

preact-cli create error

taylinlarge opened this issue · comments

When running the command npx preact-cli create default my-project it returns Unexpected token { and nothing is created.

Odd, I'm unable to reproduce and neither is our test suite.

Have you installed and older version of preact-cli globally perhaps?

Just realized I was on the wrong version of Node. Switching to LTS and confirmed its working.

Still odd. What version were you using?

We're meant to be throwing errors if you're using too old of a version, unless our detection is failing.

I was using node v8.17.0

Ah, so old it might've failed to parse. That makes more sense. Can't do much about that unfortunately.

Glad you have it working now though!