Installation webpack Tools

First you have to install the node

Download: http: //nodejs.cn/download/

After installing the environment variable configuration

In cmd (window + r open) input

npm install -g express -g is global, which means that you download the installation tool will be saved to your node directory if not below -g will be saved to the current position of the current cmd

 

Npm install webpack use them in cmd

npm install webpack -g

Use this after completing the installation

webpack -h View

Vue-cill may be prompted to install just need to follow the prompts to complete the line

 

Then use the tool in a project which webpack

Into the project directory

You can create a file package.json If you do not use npm init initial information and input

More package options can look at the bloggers https://www.cnblogs.com/gaoht/p/9323226.html

Installation webpack dependence npm install webpack --save-dev

 

View webpack version npm info webpack

Install the specified version npm install webpack@1.12.x --save-dev

 

Use webpack development tools alone npm install webpack-dev-server --save-dev

 

Scaffolding

npm install vue-cli -g

vue -V View version

vue init webpack myporject create project

ESlint rigorous testing whether the code

 

Guess you like

Origin www.cnblogs.com/webcyh/p/11828943.html