Vue Create a project using NPM or YARN

1. If YARN is not installed, NPM is used by vUE by default.

2. Yarn is installed. The first time you are given the choice of what installation to use.

Once selected, this option is set to the default, and the NPM/YARN installation of your choice will be used for each subsequent VUE creation project.

Configuring Taobao Mirror

npm config set registry https://registry.npm.taobao.org

yarn config set registry https://registry.npm.taobao.org

Change the project installation to use NPM/YARN

Enter vuerc (main modification. Vuerc file)

This file exists in C:/user/administrator/ :

Open the modification save

Run vi ~/. Vuerc in git

Alternatively, delete the.vuerc file and rerun vue create xx to select the configuration

The.vuerc file prompts you to select the configuration when you first use Vue create xx

The installation will follow the configuration selected the first time, and you will not be prompted to select the package manager again