使用npm install安装依赖时,一直卡在进度条不动,百度了一下,说是要使用淘宝镜像源进行下载。
npm install element-plus --save --registry=https://registry.npm.taobao.org
配置了之后依然下载不动,后来查了一些资料,淘宝镜像源不能使用https的,将https改成http就好了。
# 如果安装不上设置下载源,不要使用带https的
npm config set registry http://registry.npm.taobao.org
# 查看下载源
npm config get registry
执行完上面命令之后,在下载element plus就成功了。
npm install element-plus --save

文章讲述了在使用npminstall安装element-plus时遇到的卡顿问题,通过切换到淘宝镜像源并改为http协议解决下载问题的过程。
13万+

被折叠的 条评论
为什么被折叠?



