vue-cli2.x to build and vue-cli3.x

vue-cli2.x to build and vue-cli3.x

Build a precondition
a, node environment (not detailed here)
Second, install webpack
  run npm install webpack -g
three-cli 2.x installation VUE
  npm install -g VUE-cli
  create a project: vue init webpack project name (do not take Chinese name)
  

 

 Enter directly on the line.

 Look at the document, which has been set up better. vue -V (V capitalized) can view the version

Fourth, install-cli 3.x VUE
  npm install -g @ VUE-cli
  create a project: vue create project name (do not take the Chinese name)

Guess you like

Origin www.cnblogs.com/yaosusu/p/11721694.html