vue安装配置
1.安装node.js
2.设置nodejs prefix(全局)和cache(缓存)路径
在安装路径下(我的是D:\nodejs)新建两个文件夹node_cache、node_global
1)设置缓存文件
npm config set cache "D:\nodejs\node_cache"
2)设置全局模块存放路径
npm config set prefix "D:\nodejs\node_global"
3.设置镜像地址
npm config set registry xxxhttp地址xxx
4.检查镜像站行不行 返回配置的镜像地址就对
npm config get registry
5.配置环境变量
把文件路径 D:\nodejs\node_global;D:\nodejs\ 添加到path里面
6.安装vue.js
npm install vue -g
7.安装路由
npm install vue-router -g
8.安装脚手架
npm install vue-cli -g
9.初始化项目 template01
vue init webpack template01
不完善参考以下两个链接
参考:https://www.cnblogs.com/goldlong/p/8027997.html
https://blog.****.net/weixin_38278892/article/details/79255336