amberframework / amber

A Crystal web framework that makes building applications fast, simple, and enjoyable. Get started with quick prototyping, less bugs, and blazing fast performance.
https://amberframework.org
MIT License
2.57k stars 205 forks source link

Minimum node version not detected when generating a new app #1300

Closed crimson-knight closed 1 year ago

crimson-knight commented 1 year ago

Currently, we support Node 14.18+ and 16+. However, you can still generate a new amber app without a supported node version installed.

alex-lairan commented 1 year ago

Add a --ignore-node-version flag to opt-out of this node version safety check (don't know why you'd need this, but seems smart to include)

You may have a version manager, and the system version is not up to date (for any legacy reason) but the corrects versions are available once you have the .node-version or any version file.

crimson-knight commented 1 year ago

@alex-lairan that was also my thought. I use nvm but I still have my global node version set to 18 because I install some scripts globally to run as cli tools, and I'm betting most others have the same setup (but not all, who knows)

So when the node version check is ignored, what should the default dependencies be set to? The 16+ version makes the most sense to me.

alex-lairan commented 1 year ago

I would say the highest possible.

crimson-knight commented 1 year ago

Closing this because we removed the dependency on Node entirely