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

yarn create vue@latest report an error #502

Closed
earthaYan opened this issue Apr 24, 2024 · 2 comments
Closed

yarn create vue@latest report an error #502

earthaYan opened this issue Apr 24, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@earthaYan
Copy link

Describe the bug

I tried to use yarn create vue@latest to create a brand new vue3 project ,,but it report an error:

> yarn create vue@latest
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
'C:\Users\username\AppData\Local\Yarn\bin\create-vue@latest' 不是内部或外部命令,也不是可运行的程序
或批处理文件。(It is not an internal or external command, nor is it a runnable program or batch files.)
error Command failed.
Exit code: 1
Command: C:\Users\yueyu\AppData\Local\Yarn\bin\create-vue@latest
Arguments:

but when I use npm create vue@latest,it works well

Expected behavior

when I use yarn ,it does not report error

How to reproduce

node:v20.12.2
yarn:1.22.22

@earthaYan earthaYan added the bug Something isn't working label Apr 24, 2024
@Yordan-Ramchev
Copy link
Contributor

@earthaYan I've managed to reproduce your issue
Screenshot 2024-04-27 at 21 20 19

Yarn version 1 don't support feature flags, you can upgrade your yarn version to a newer version or remove @latest flag

https://yarnpkg.com/blog/release/4.0
Screenshot 2024-04-27 at 21 19 46

@cexbrayat
Copy link
Member

Yes, this is a duplicate of #213 (comment)
We can't do anything in create-vue, this is an issue with old versions of Yarn, let's close

@cexbrayat cexbrayat closed this as not planned Won't fix, can't repro, duplicate, stale Apr 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants