发现npm在全局变为淘宝的镜像源后,登录和发布包失败,报以下错误:
npm ERR! code E409 npm ERR! Conflict
命令修改如下,可以发布到npmjs
npm login --registry http://registry.npmjs.org
npm publish --registry http://registry.npmjs.org