1、在使用之前,先类掌握3个东西,明白它们是用来干什么的:
npm: nodejs 下的包管理器。
webpack: 它主要用途是通过CommonJS 的语法把所有浏览器端需要发布的静态资源作相应的准备,比如资源的合并和打包。
vue-cli: 用户生成Vue工程模板。(帮你快速开始一个vue的项目,也就是给你一套vue的结构,包含基础的依赖库,只需要npm install 就可以安装。
2、nodejs下载网址:Node.js 【如果嫌下载的慢,可以下载其他网站上的,别人有现成的,下载的比较快】
https://nodejs.org/en/



npm国内镜像
npm config set registry=http://registry.npm.taobao.org
npm config get registry
