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

Docs: fix wrong characters in npm init example with specific template #1822

Closed
lewandy opened this issue Jan 31, 2021 · 2 comments
Closed

Docs: fix wrong characters in npm init example with specific template #1822

lewandy opened this issue Jan 31, 2021 · 2 comments

Comments

@lewandy
Copy link

lewandy commented Jan 31, 2021

Describe the bug

I just noticed that the example has wrong characters in flag template on https://vitejs.dev/guide/#scaffolding-your-first-vite-project .

Current

   npm init @vitejs/app my-vue-app -- --template vue

Suggestion

   npm init @vitejs/app my-vue-app --template vue

Reproduction

Go to https://vitejs.dev/guide/#scaffolding-your-first-vite-project and see the following.

image

@bwyx
Copy link

bwyx commented Jan 31, 2021

I notice that too yesterday its added by Evan himself so I thought it's done on purpose but I don't know
as in 3dd1187

@yyx990803
Copy link
Member

Just double checked - the extra -- is required for npm 7+ but is not needed for npm 6.

@github-actions github-actions bot locked and limited conversation to collaborators Jul 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants