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

Add option to run vue-cli through npx #564

Closed
wants to merge 3 commits into from

Conversation

josephrexme
Copy link

No description provided.

@josephrexme
Copy link
Author

I just realized this isn't working as expected right now so it's great that it isn't merged yet. I created an issue for this at zkat/npx#112

README.md Outdated
Or you may use npx and avoid global install if you are on npm >= 5

```bash
npx vue init <template-name> <project-name>
Copy link
Member

Choose a reason for hiding this comment

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

You're right, we have to provide vue-cli to npx

@posva
Copy link
Member

posva commented Aug 17, 2017

@josephrexme It does work for me though...

@josephrexme
Copy link
Author

I just changed it to use vue-cli instead

README.md Outdated
@@ -16,7 +16,11 @@ $ npm install -g vue-cli
$ vue init <template-name> <project-name>
```

> You can also avoid installing the CLI and run **npx vue init <template-name> <project-name>**
Or you may use npx and avoid global install if you are on npm >= 5
Copy link

Choose a reason for hiding this comment

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

Note: npx and the workflow are also supported on npm 4.3.

@yyx990803
Copy link
Member

Thanks for the PR, but I don't really think there's a point in installing vue-cli locally in your project. It's used to create a project in the first place and itself is not updated that often.

@yyx990803 yyx990803 closed this Feb 5, 2018
@rashnk
Copy link

rashnk commented Sep 24, 2018

I didnot install vue-cli globally, npx vue create hello-world worked for me

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.

6 participants