1.下载npm
- 下载nodejs
- 安装nodejs
- node -v 查看版本
- npm安装(nodejs安装时已安装)
- npm -v 查看版本
- 安装淘宝镜像 npm install -g cnpm --registry=http://registry.npm.taobao.org
- 查看结果 cnpm -v
2.安装bower
- 下载安装bower
- cnpm install bower -g
- bower -v 查看版本
3.bower info vue 查看vue版本
(出现git is not installed or not in the Path错误时需安装git)
4.npm init --yes
5.cpnm install vue --save 或者 npm install vue(保存路径node_modules/vue/dist)