Vue CLI 3 - from the unloading Vue CLI 2 to the mounting Vue CLI3

1. With regard to the old version:

Vue CLI package name changed to @ vue / cli a vue-cli.
If you have already installed an older version of the global vue-cli (1.x or 2.x),
you need to uninstall it by npm uninstall vue-cli -g, or yarn global remove vue-cli.

2.Node version requirements

Vue CLI requires Node.js version 8.9 or later (recommended 8.11.0+).
You can use nvm nvm-windows or Node manage multiple versions on the same computer.

3. uninstall

Uninstall the old version (npm uninstall vue-cli -g)
to install Vue CLI 3 (npm install -g @ vue / cli):

==> View version vue --version or vue -V

Finally, the new project hello world

vue create hello-world
then select the configuration step by step, the installation-dependent.

4. would like to continue to use Vue CLI2
official online presentation:

Vue CLI 3 and legacy vue use the same command, the Vue CLI 2 (vue-cli) is covered. If you still need to use the old version of vue init function, you can install a global bridging tool:

npm install -g @vue/cli-init

After successful installation, start their cli 2 items, successful results:
So far, Vue CLI 3 to install the upgrade is complete, and the successful launch of the Vue CLI 2.

Reprinted: https://blog.csdn.net/fuyujiaof/article/details/83624503

Guess you like

Origin blog.csdn.net/samarket/article/details/92076628