Vue cli installation and resolve the cause of slow record

Remember when using the vue cli 2, vue create project name, after selecting several configurations, will soon be able to download all the modules, and soon. But after I upgraded, becomes very slow, I do not know why?

 

1. The first to address the way, it is also the most people write, to download the source instead Taobao source, this article too much, all copying each other, that is, the execution of this command

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

 

2. The second case, which is also experiencing my own questions, the first method can not be solved, is to look at your npm version and node version, the general node version is relatively low, maybe even vue scaffolding can not be executed, so node generally find a good reason, but npm version low will affect the speed of the download, the following is my case

 

npm: 3.x

vue-cli: 3.x and 4.x

 

The results create a project, spent a day later not to create finished, then I put npm updated to version 6.x, the speed went back, back to the original that the rapid pace

 

Guess you like

Origin www.cnblogs.com/oscar1987121/p/12165934.html