前端npm失败时,可以通过修改仓库地址(默认的时淘宝):
npm config set registry https://repo.huaweicloud.com/repository/npm/
两者切换,一般可以解决问题
npm config set registry https://registry.npm.taobao.org
查看仓库:npm config get registry
npm失败
最新推荐文章于 2024-05-05 09:05:54 发布
前端npm失败时,可以通过修改仓库地址(默认的时淘宝):
npm config set registry https://repo.huaweicloud.com/repository/npm/
两者切换,一般可以解决问题
npm config set registry https://registry.npm.taobao.org
查看仓库:npm config get registry