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.59k stars 2.08k forks source link

[Bug]: npx @vue-storefront/cli generate store doesn't generate a store #6931

Open johnsmithodom opened 1 year ago

johnsmithodom commented 1 year ago

Describe the Bug

npx @vue-storefront/cli generate store doesn't generate a store to yarn/ yarn dev to start with

Current behavior

root@vps:~# npx @vue-storefront/cli generate store ┌ Welcome to Vue Storefront 2 CLI! 💚 │ ◇ 🚀 What's your project name? │ yes │ ◇ ⚙️ Choose an integration template: │ Spree │ ◇ 🙌 Node.js version is compatible │ ◇ 🎉 Vue Storefront project has been generated │ ◇ 🎉 Dependencies have been installed successfully │ ◇ ────────────────────────────────────────────────────────────╮ │ │ │ Project is conifugred. │ │ If you want more advanced configuration go to the │ │ https://docs.vuestorefront.io/spree/ to learn how to do it. │ │ │ ├───────────────────────────────────────────────────────────────╯ │ ◇ To start working with the project, cd into project directory: │ ◇ cd yes │ ◇ Start the project using this command: │ ◇ yarn dev │ ◇ │ ◇ Happy coding! 🎉 root@vps:~# cd yes/ root@vps:~/yes# yarn dev 00h00m00s 0/0: : ERROR: [Errno 2] No such file or directory: 'dev' root@vps:~/yes# root@vps:~/yes# yarn 00h00m00s 0/0: : ERROR: There are no scenarios; must have at least one. root@vps:~/yes#

Expected behavior

Step 2: Install dependencies

Step 3: Configure the project

Step 4: Start the project

Steps to reproduce

No response

What version of Vue Storefront are you using?

2

What version of Node.js are you using?

v16.13.0

What browser (and version) are you using?

firefox

What operating system (and version) are you using?

Ubuntu 22.04.1 LTS

Relevant log output

No response

Able to fix / change the documentation?

Code of Conduct

rohrig commented 1 year ago

Hi @johnsmithodom 👋 ,

Can you please elaborate on what happens when you run the command? I just tried it and it did create a store for me.

are you getting errors of any kind?

johnsmithodom commented 1 year ago

The current env. a is a bit different than before. but still not sure why can't create store.

root@1add90:~# npx @vue-storefront/cli generate store
┌  Welcome to Vue Storefront 2 CLI! 💚
│
◇  🚀  What's your project name?
│  shop
│
◇  ⚙️  Choose an integration template:
│  Spree
│
◇  😩 Node.js version is incompatible. Please make sure you use Node.js version >= 16.13 and <17.
root@1add90:~#  node -v
v16.14.2
root@1add90:~# npm -v
9.7.2
root@1add90:~# yarn -v
3.6.1
root@1add90:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.6 LTS
Release:        20.04
Codename:       focal
rohrig commented 1 year ago

Hi @johnsmithodom , I'd love to help but I'm not able to reproduce the error. I tried on a Mac, and inside of a docker container, and each time the node check was successful.

Can you please give the output you see when you run npx @vue-storefront/cli ? here's mine

image
johnsmithodom commented 1 year ago

root@1add90:~# npx @vue-storefront/cli Vue Storefront's CLI.

VERSION @vue-storefront/cli/4.3.0 linux-x64 node-v16.14.2

USAGE $ @vue-storefront/cli [COMMAND]

TOPICS add Create new endpoint. Usage: add endpoint create Generate integration boilerplate. Usage: create integration generate plugins List installed plugins.

COMMANDS add Create new endpoint. Usage: add endpoint create Generate integration boilerplate. Usage: create integration help Display help for @vue-storefront/cli. init m2-only Install local Magento 2 instance plugins List installed plugins. update update the @vue-storefront/cli CLI