Installation node.js, webpack, vue vue-cli and slow to install and / unsuccessful solution

1, install node.js

 Address: https: //nodejs.org/en/ after download and install the software, you can click Next

 Open dos window, type cmd can quickly open, enter npm -v and node -v to show publication of this number represents a successful installation

 

2, the overall installation wepback 

  npm install --global webpack can be abbreviated npm i -g webpack

      Use webpack -v view, if the version number is displayed, on behalf of success

 

3, installation vue

      Walking to npm

 

4, the global installation vue-cli

  npm she -g vue-cli

 

5, the installation slow download speeds are generally npm not, poor network

  The first kinds of ways to change npm warehouse Taobao mirror

       npm config set registry https://registry.npm.taobao.org --global
       npm config set disturl https://npm.taobao.org/dist --global

  The second way to upgrade npm 

      cnpm install  npm -g

        A third way to use yarm command to download

       Reference link: https: //blog.csdn.net/yw00yw/article/details/81354533

 

Guess you like

Origin www.cnblogs.com/m1754171640/p/11363384.html