vuestorefront / vue-storefront

Alokai is a Frontend as a Service solution that simplifies composable commerce. It connects all the technologies needed to build and deploy fast & scalable ecommerce frontends. It guides merchants to deliver exceptional customer experiences quickly and easily.
https://www.alokai.com
MIT License
10.57k stars 2.08k forks source link

`@vue-storefront/cli` needs Node.js 16 (Gallium) that is so old it is not even Maintenance LTS anymore. #7014

Open kindaro opened 8 months ago

kindaro commented 8 months ago

Environment

Reproduction

  1. Make sure your version of Node.js is newer than 16 (Gallium).
  2. Run npx @vue-storefront/cli init as offered in official documentation.
  3. Write any name and select any integration template when prompted.
  4. Observe error.

Describe the bug

You can look at the official Node.js release schedule here. As you see, Node.js 16 (Gallium) is not even Maintenance LTS anymore. This has various negative implications: this version may not be available in major distributions, it will not receive critical security updates, and so on.

I am not sure how much of Vue Storefront code base is affected. My journey with it is only at its outset. If it is only cli that is affected, then this issue is merely a nuisance, since I shall only need to run it a few times. But to run an outdated version of Node.js in production is irresponsible.

It is sad to see that an issue that seems to be related has been opened more than a year ago and even a pull request has been offered, without even a comment from the maintainers. I hate dealing with versioning issues as much as the next software engineer, but something must be done.

Additional context

The issue #6844 seems to be related.

Logs

% npx @vue-storefront/cli init
┌  Welcome to Vue Storefront 2 CLI! 💚
│
◇  🚀  What's your project name?
│  Example Project
│
◇  ⚙️  Choose an integration template:
│  Prestashop
│
◇  😩 Node.js version is incompatible. Please make sure you use Node.js version >= 16.13 and <17.
lisaschumann commented 7 months ago

Experiencing the same issue and surprised there has not been any update. It would be amazing, if someone took a look!

skirianov commented 7 months ago

hey! Thanks for raising this @kindaro, I'll take a look and try to roll out a fix asap.

Kiwifu commented 6 months ago

The same issue here, it seems that storefront is stuck on 16.13 and <17 node version, it's not possible to use it as I have a higher version of node. Please, we need help here, make Vue storefront compatible with the latest version of node.js/

Kiwifu commented 4 months ago

npx @vue-storefront/cli init ┌ Welcome to Vue Storefront 2 CLI! 💚 │ ◆ 🚀 What's your project name? │ _ ◇ 🚀 What's your project name? │ pwa │ ◇ ⚙️ Choose an integration template: │ Magento 2 │ ◇ 😩 Node.js version is incompatible. Please make sure you use Node.js version >= 16.13 and <17.

I have the version Node.js 20, what to do?

thomasdefilippis commented 2 months ago

Has any progress been made on this issue? The use of node 16 implies that this repo is going stale or will not be maintained into the future.

OliverRC commented 1 month ago

Not to meantion an old version of Yarn which no matter what I try it refuses to recognize the yarn version 2. Keeps moaning about

Yarn version is incompatible. Please make sure you use Yarn version >= 1 and <3.

However when checking the version I've switched to version 2 of yarn

yarn -v 
# comes back with "2.4.3"

I get the sense they've given up on the CLI and local dev since changing their name and going hard on cloud and enterprise offerings.

andrea-merli commented 2 weeks ago

I agree, the policies of my company would not even allow to use a version so outdated

thomasdefilippis commented 2 weeks ago

Yeah,

I would guess that they are going to make community edition deprecated and move everything to enterprise. I decided to not use this project and instead use medusajs which has worked out great for my team.

andrea-merli commented 2 weeks ago

Yeah,

I would guess that they are going to make community edition deprecated and move everything to enterprise. I decided to not use this project and instead use medusajs which has worked out great for my team.

I suspect the same