修改npm仓库地址

解决方案

npm config set registry http://registry.npm.taobao.org/

将npm默认设置为淘宝镜像地址

发布包

当你想发布自己的包时,需要将地址修改回来

npm config set registry https://registry.npmjs.org/

posted @ 2021-07-29 16:58  沐子馨  阅读(1719)  评论(0编辑  收藏  举报