DEV Community

Marcin Wosinek
Marcin Wosinek

Posted on • Originally published at how-to.dev

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

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
Enter fullscreen mode Exit fullscreen mode

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
Enter fullscreen mode Exit fullscreen mode

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.

Discussion (0)