下载npm i element-ui -S的问题
出现
npm ERR! Only HTTP(S) protocols are supported
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\ASUS\AppData\Local\npm-cache_logs
诸如此类的报错,有其他解决不在赘述,有可能是npm镜像时没有填写清楚,建议查看(部分引用https://jingyan.baidu.com/article/5d6edee24c4da4d8eadeec85.html)
输入win+r, 输入cmd
输入 npm get registry:查看当前镜像源为https://registry.npmjs.org/
设置自己的镜像地址 :输入npm config set registry
如淘宝镜像地址npm config set registry https://registry.npm.taobao.org