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 installation process gives warnings #213

Closed
kajojify opened this issue Dec 13, 2022 · 7 comments
Closed

yarn installation process gives warnings #213

kajojify opened this issue Dec 13, 2022 · 7 comments

Comments

@kajojify
Copy link

Hello!

I decided to create a new Vue project with help of create-vue and yarn tools. I ran yarn create vue@latest then set the following options:
✔ Project name: … vue-project
✔ Add TypeScript? … Yes
✔ Add JSX Support? … Yes
✔ Add Vue Router for Single Page Application development? … Yes
✔ Add Pinia for state management? … Yes
✔ Add Vitest for Unit Testing? … No
✔ Add an End-to-End Testing Solution? › No
✔ Add ESLint for code quality? … Yes
✔ Add Prettier for code formatting? … Yes

Then I went to vue-project folder, ran yarn command and saw this:
image

Is there anything I can do to quickly fix this?
Thank you.

@sodatea
Copy link
Member

sodatea commented Dec 13, 2022

I think these warnings can be safely ignored. They are mere warnings, after all.

If you are interested in more details:

sodatea added a commit to vuejs/babel-plugin-jsx that referenced this issue Dec 14, 2022
@kajojify
Copy link
Author

Hello. Thank you!

codegod2222 added a commit to codegod2222/babel-plugin-jsx that referenced this issue Jan 12, 2023
@TwT-L
Copy link

TwT-L commented Sep 25, 2023

I get an error, When I run the yarn create vue@latest command.

yarn create v1.22.4
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
warning "create-umi > sylvanas > @umijs/fabric > eslint-plugin-compat@3.6.0" has incorrect peer dependency "eslint@^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0".
warning "create-umi > sylvanas > @umijs/fabric > eslint-plugin-jsx-a11y@6.2.3" has incorrect peer dependency "eslint@^3 || ^4 || ^5 || ^6".
[4/4] 🔨  Building fresh packages...
success Installed "create-vue@3.7.5" with binaries:
      - create-vue
/bin/sh: /usr/local/bin/create-vue@latest: No such file or directory
error Command failed.
Exit code: 127
Command: /usr/local/bin/create-vue@latest
Arguments:
Directory: /Users/lichin/Documents/code/test
Output:

info Visit https://yarnpkg.com/en/docs/cli/create for documentation about this command.

@sodatea
Copy link
Member

sodatea commented Sep 27, 2023

Yarn v1 doesn't support appending @tag to the create command. So just use yarn create.

@tomatobybike
Copy link

Yarn v1 不支持附加@tagcreate命令。所以只需使用yarn create.

Good !!

@jamesdongdong
Copy link

https://cn.vuejs.org/guide/quick-start.html#:~:text=%24%20yarn%20create%20vue%40latest

The official documentation for Vue 3 still suggests using the command: yarn create vue@latest. Perhaps it would be beneficial to update the document?

@Yordan-Ramchev
Copy link
Contributor

@jamesdongdong Latest yarn version is 4.1.1-dev, and it supports appending @tag. You can reference it here - https://yarnpkg.com/cli/add I don't think Vue doc needs to be updated.

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

6 participants