-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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]: CLI generate store throws when Yarn is not installed (Windows) #6905
Comments
Also, prerequisites only mention node and not yarn: Sure, scroll down and you'll see yarn, but you get the point 😉 |
Thanks for reporting this! I will take a look and release a fix for that. I think the issue is that we are checking for yarn even if user doesn't want to select Magento to install locally. Also, as @DavidDeSloovere mentioned, this is a flaw in docs and we will add Yarn and part of prereq 👍 |
hey @tqlong1609 can you please run this command Most probably this is an issue how we check Yarn version, I'll release a patch asap |
Must say that the error peristed after installing yarn. My
|
@DavidDeSloovere thank you! This is 100% something wrong with Windows yarn version check, I'll release an RC CLI version right now, would you be able to check in 10 mins? |
Yes, I have some time today to check. |
Hopefully it is fixed, can you please try it out: |
hmmm...I'm trying to figure out what's happening. Npm package is published, but for some reason it is not updated in the registry. Maybe some propagation issues. |
https://status.npmjs.org/ - there was an issue with npm publish service indeed. Can you please try |
@DavidDeSloovere Windows 💀 Are you running this with WSL installed? Unfortunately CLI does not support installation of Magento locally using Windows without WSL (there are so many issues with that =() I'll make sure to add this error handler in the next patch. npm registry right now has issues with the Can you please try running the command wihtout Magento 2 local install once again, will it result in the same error? I'll publish a patch meanwhile |
@DavidDeSloovere patch is up, can you please try |
😭 I know what's the issue here. Apparently, Windows needs to run rc3 is up Thanks a lot for helping me out @DavidDeSloovere
|
Amazing thanks so much @DavidDeSloovere!! 🙌 https://www.npmjs.com/package/@vue-storefront/cli/v/4.1.4 - 4.1.4 patch is out |
Looks good this 👍 |
@skirianov |
Looking into it @DavidDeSloovere 🙏 |
in my case it was yarn Error: spawn yarn ENOENT
at Process.ChildProcess._handle.onexit (node:internal/child_process:285:19)
at onErrorNT (node:internal/child_process:485:16)
at processTicksAndRejections (node:internal/process/task_queues:83:21)
Emitted 'error' event on ChildProcess instance at:
at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
at onErrorNT (node:internal/child_process:485:16)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
errno: -4058,
code: 'ENOENT',
syscall: 'spawn yarn',
path: 'yarn',
spawnargs: [] I solved it by running the command manually I ran yarn and then yarn dev
|
@skirianov I am still stuck in this problem, my device is windows, magento 2.4.7 is already installed in ubuntu on window and it is working fine, yarn is already installed on window, can anyone help me, what do I need to do to install it in windows |
Describe the Bug
CLI throws error when, probably because Yarn is not installed
npx @vue-storefront/cli generate store
Current behavior
CLI throws ugly error
Expected behavior
CLI should return a user friendly message that Yarn is required needs to be installed.
Steps to reproduce
don't not have yarn installed
enter name for project
select magento 2
install magento? no
What version of Vue Storefront are you using?
latest cli
What version of Node.js are you using?
16.20.0
What browser (and version) are you using?
What operating system (and version) are you using?
Windows
Relevant log output
Able to fix / change the documentation?
Code of Conduct
The text was updated successfully, but these errors were encountered: