Skip to main content

Command Palette

Search for a command to run...

How to create an app with vue CLI without a global installation

Published
1 min read

If you check out the official doc the process of generating new app has 2 steps:

# install globaly
npm install -g @vue/cli
# create app
vue create my-project

If you use vue cli only form time to time global installation doesn't make much sense - you probably will upgrade npm before running the vue command again. In this case, you can generate your code with:

$ npx -p @vue/cli vue create my-project

Example run: asciicast

Summary

In this article, we have seen how to run vue cli without a global installation & adding vue executable to our system.

More from this blog

H

How to dev

164 posts

Articles about programming. JavaScript and general advice for beginners in the industry.