LundinCast
LundinCast

Reputation: 9810

Vue CLI 3 doesn't create .vuerc file

I'm using Vue CLI 3.5.1 on Ubuntu 16.04 to create some test projects. As per the doc, I should have a .vuerc file created in my Home directory. However, when I run:

vue create test-project

no such file is created. Projects work fine but running vue config gives the following error:

lundincast@lundincast:~/Vuejs-projects/test-app$ vue config
ERROR Error: ENOENT: no such file or directory, open /home/lundincast/.vuerc > Error: ENOENT: no such file or directory, open '/home/lundincast/.vuerc'

I've tried with several option (saving preset or not, etc...) to no avail. Why isn't that config file created?

Upvotes: 2

Views: 1957

Answers (2)

kasope johnson
kasope johnson

Reputation: 41

.vuerc files are only created after you have asked vue cli to save a preset for you at the end of the vue create process prompts

The file is stored in your user directory and can be edited with vue config --edit

Upvotes: 1

Mohammad Reza Mrg
Mohammad Reza Mrg

Reputation: 2043

After running:

vue create hello-world

.vuerc file will be created in your user root diretory

Upvotes: 0

Related Questions