Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to choose npm over yarn in vue create

I want to create a Vue project, and I want to use npm.

In the terminal, when I do vue create hello, by default yarn is used as a package manager.

So how to start straight with npm instead of yarn?

like image 428
Brian Avatar asked Oct 29 '25 17:10

Brian


2 Answers

Simply type vue create --help to find out which options the vue create command offers.

vue create hello --packageManager npm

is what you are looking for.

like image 194
connexo Avatar answered Oct 31 '25 09:10

connexo


You can either choos the --packageManager commandline option or check the default packagemanager, which is saved under ~/.vuerc (the user home directory)

like image 36
Peter Schneider Avatar answered Oct 31 '25 07:10

Peter Schneider