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

Create project with yarn #2894

Closed
khaicm-0897 opened this issue Jun 8, 2024 · 2 comments
Closed

Create project with yarn #2894

khaicm-0897 opened this issue Jun 8, 2024 · 2 comments

Comments

@khaicm-0897
Copy link

I'm starting a project with yarn. I followed the instructions on Vue's homepage
https://vuejs.org/guide/quick-start#creating-a-vue-application
with command: yarn create vue@latest vue3-base
but when I run the above command I receive an error message as follows

yarn create v1.22.22
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...

success Installed "create-vue@3.10.3" with binaries:
 - create-vue
/bin/sh: 1: /home/rubin/.yarn/bin/create-vue@latest: not found
error Command failed.
Exit code: 127
Command: /home/rubin/.yarn/bin/create-vue@latest
Arguments: vue3-base
Directory: /home/rubin/workspace
Output:

Then I did some research and it seemed like this command was incorrectly describing the process of initializing a vue project with yarn.
I found a way and fixed it, the process is as follows:

 yarn add create-vue // Add create-vue from registry yarn
yarn create vue vue3-base // Create project with name vue3-base

Please consider my issue, if necessary I can push pull to rewrite this installation guide. thank you

@Yordan-Ramchev
Copy link
Contributor

@khaicm-0897 Based on your command output you are using - yarn create v1.22.22 - that is classic yarn (version 1), latest is 4.2.2

Yarn version 1 don't support feature flags, you can upgrade your yarn version

Reference: vuejs/create-vue#502

@khaicm-0897
Copy link
Author

@Yordan-Ramchev Thank you for your reply, sorry for just replying now as I have found a way to fix it with my current version. I just tried updating the version as you wanted and creating a new project and everything went well. I think I will close this issue here thanks

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

No branches or pull requests

2 participants