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

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

Open
2 of 3 tasks
johnsmithodom opened this issue Jun 27, 2023 · 4 comments
Open
2 of 3 tasks
Labels
bug Bug reports

Comments

@johnsmithodom
Copy link

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?

  • Yes
  • No

Code of Conduct

  • I agree to follow this project's Code of Conduct
@johnsmithodom johnsmithodom added the bug Bug reports label Jun 27, 2023
@rohrig
Copy link
Contributor

rohrig commented Jun 30, 2023

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
Copy link
Author

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
Copy link
Contributor

rohrig commented Jul 1, 2023

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
Copy link
Author

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 <endpoint_name>
create Generate integration boilerplate. Usage: create integration
generate
plugins List installed plugins.

COMMANDS
add Create new endpoint. Usage: add endpoint <endpoint_name>
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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug reports
Projects
None yet
Development

No branches or pull requests

2 participants