Skip to content

fix: double dashes in command with vite #1201

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

Merged
merged 3 commits into from
Aug 23, 2021
Merged

fix: double dashes in command with vite #1201

merged 3 commits into from
Aug 23, 2021

Conversation

JensVanhulst
Copy link

Description of Problem

Double dashes in the scaffolding command with vite

npm init vite <proj-name> -- --template vue

Proposed Solution

npm init vite <proj-name> --template vue

Additional Information

Copy link
Member

@haoqunjiang haoqunjiang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to differentiate npm 6 and npm 7. See https://vitejs.dev/guide/#scaffolding-your-first-vite-project

@JensVanhulst
Copy link
Author

JensVanhulst commented Aug 23, 2021

@sodatea
Well it is not documented on the vue 3 docs as you can see below.
Isn't this confusing because if I'm on the vue site, I'm not going to follow the guide on vite ?
image

@haoqunjiang
Copy link
Member

So I'm not closing this PR but requesting you to document both npm 6 & npm 7 behavior.
Otherwise it will confuse npm 7 users.

@JensVanhulst
Copy link
Author

Should be fixed now.

@NataliaTepluhina NataliaTepluhina merged commit dad6c6d into vuejs:master Aug 23, 2021
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

Successfully merging this pull request may close these issues.

3 participants