输入 npm install axios
这可能是由于下载源的问题,可能需要更改镜像或者注册一个镜像
npm config get registry
先使用指令查询配置注册镜像
得到这个指令证明需要注册一个镜像源
npm config set registry https://registry.npm.taobao.org
注册淘宝镜像
npm config get registry
查看注册信息
https://registry.npm.taobao.org
npm install axios --save --legacy-peer-deps
输入指令
成功