Implementation method of Vue-CLI2 and Vue-CLI3 in a computer

1. Newly built two folders, which are used to store VUE-CLI2 and Vue-CLI3

vue-cli2与vue-cli3在一台电脑共存的实现方法

2, enter the Vue2 folder downloading Vue-CLI2.0

vue-cli2与vue-cli3在一台电脑共存的实现方法

VUE-CLI2.0 version download command is NPM Install Vue-CLI or NPM Install Vue-CLI @ version number, here I specified version number, and don’t Plus -g, otherwise it will be installed to the global location

After downloading, a `node_modules` folder is generated, enters the` .bin` folder under the folder – `F: \ vue \ vue2 \ node_modules \ .bin`

You can see the

cmd

command under this folder, because it is partially installed, so executes CMD in this directory Command

Vue -V , the result is as follows, the installation is successful 3, enter the Vue3 folder downloading Vue-CLI3.0

Vue-CLI3.0 installation steps are the same as the above 2.0, the only difference is to download the installation command is -`npm install @ Vue / CLI

vue-cli2与vue-cli3在一台电脑共存的实现方法 4, modify the CMD command name

In order to distinguish between two versions of

cmd

command, we are

Vue-Cli2

and

Vue-CLI3

5, configure environment variable

vue-cli2与vue-cli3在一台电脑共存的实现方法 process, please see Above, the last step is to be operated twice, add 2.0 and 3.0 cmd commands to the environment variable, click to view, choose to the .bin folder

6, use

vue-cli2与vue-cli3在一台电脑共存的实现方法 to create items —

Vue-Cli2 Init Webpack

vue-cli2与vue-cli3在一台电脑共存的实现方法

Vue-cli3.0

Create items —

Vue-cli3 Create My-Project

The above is all the content of this article, I hope to help everyone, I hope everyone supports Tumi Cloud.

© Copyright Notice
THE END
Just support it if you like
like0
share
comment Grab the couch

Please log in to comment