webpack development environment to build

node.js environment dependent

node version is greater than 8.9. Many rely on the latest, will need more than 8.9 version

E: \ Development \ Vue_Demo> Node -V 
V10.16.3

  Installation webpack. Specify the version number, vue cli2 dependent on the version

npm install [email protected] -g

 Before installation confirm whether the already installed

E: \ Development \ vue_Demo> WebPACK --version 
'WebPACK' is not an internal or external command, operable program 
or batch file. 

E: \ development \ vue_Demo> npm install [email protected] -g

  

As the domestic network problems, it is recommended to use a mirror to install and deploy the appropriate domestic environment.

 

nrmThe installation

Role: to provide some of the most commonly used NPM package mirror address, allows us to quickly switch to install the server address of the packet time; what is the mirror image: the original package very beginning is only present in the foreign NPM server, but due to network reasons, often not visit this time, we can at home, and create a NPM official website exactly the same server, but the data are taking over from where people, in addition, using exactly the same way; 

1 / run npm i -g global installation package nrm nrm; 
2 / LS See nrm use all available current mirror source address and the source address of the current mirror being used; 
3 / use nrm use npm or nrm use taobao different switching mirror source address; 
Note: nrm simply provide the URL address several commonly used to download packages, and allow us to address these in between, it is convenient to switch, but every time we install the package when using the installation package tools are It is npm
nrm Introduction


Guess you like

Origin www.cnblogs.com/Mengchangxin/p/11780648.html