浅谈vue安装vue-element-admin

前言

莫将容易得,便作等闲看。


目标

初始化安装vue-element-admin

一、使用及场景

# 克隆项目
git clone https://github.com/PanJiaChen/vue-element-admin.git

# 进入项目目录
cd vue-element-admin

# 安装依赖
npm install

# 建议不要用 cnpm 安装 会有各种诡异的bug 可以通过如下操作解决 npm 下载速度慢的问题
npm install --registry=https://registry.npm.taobao.org

# 本地开发 启动项目
npm run dev

参考

https://panjiachen.github.io/vue-element-admin-site/zh/guide/#安装npm

npm install遇到的问题安装一直不成功解决办法

npm install
npm ERR! Error while executing:
npm ERR! C:\Program Files\Git\cmd\git.EXE ls-remote -h -t  https://github.com/openplans/Leaflet.AnimatedMarker.git 

npm ERR!
npm ERR! fatal: unable to access ' https://github.com/openplans/Leaflet.AnimatedMarker.git/ 

': error setting certificate verify locations:
npm ERR!   CAfile: E:/Program Files/Git/mingw32/ssl/certs/ca-bundle.crt
npm ERR!   CApath: none
npm ERR!
npm ERR! exited with error code: 128

npm ERR! A complete log of this run can be found in:
npm ERR!    

解决办法  
git config --global http.sslverify "false"  
执行后重新
npm install

多留言多点赞你们的只支持是我坚持下去的动力,都支棱起来!!!

猜你喜欢

转载自blog.csdn.net/aa327056812/article/details/110736148