Vue installation and installation of scaffolding has been stuck with problems not move

1. First we go nodejs official website: https://nodejs.org/en/download/  (download nodejs, download the latest version of their computer want to match)

2. Second, to download a cnpm (Note: Taobao npm mirror, this is Ali to foreign npm server moved to our China, and with Taobao mirror npm download some configuration files will be faster)

As follows: lower right corner of the computer input window cmd, the

npm install -g cnpm --registry=https://registry.npm.taobao.org

复制到cmd里面去就可以拉。(注释:我们用ctrl+C 复制网站,在cmd中鼠标点击右键粘贴就可以复制
npm install -g cnpm --registry=https://registry.npm.taobao.org 然后回车键进行安装。

3. Install vue file

cnpm install i vue -S

4. Installation vue scaffolding, scaffolding on the issue,

Some brothers and sisters will find that the installation of the card would have been fixed, I have encountered this problem, check the information found to be the last question I installed scaffolding vue version appears relatively low

// Before I installed with cnpm install -g vue / cli is installed with this particular version of an old injury, I used the time vue init webpack app, really stuck in one place one night, I woke up and found still stuck in that place, so be sure to remember to install vue scaffolding must install the latest version, the latest version is as follows:
c npm install -g @ vue / cli
CNPM install -g @ vue / cli-the init

After 2 mounted thereon vue scaffolding profiles, enter:
vue the init WebPACK App         

// Note: app own file is created, you can name your own take, such as my-app Yeah, or other available

// When configured in addition to use ESlint to lint your code select all other selected n y, because the use ESlint to lint your code we write the code would be more stringent, such as code space must be the same way ....

When the installation is complete, enter npm run dev
finished running will give us a URL http // localhost: 8000


5. Some need to know vue scaffolding directory

webpack build a configuration file
config core file
src storage resources, assets are stored in static resources such as images

router is routing

 

Guess you like

Origin www.cnblogs.com/Aangle-long/p/11600966.html