npm publish发布包时出现403错误no_perms Private mode enable, only admin can publish this module:
或者使用yarn publish出现couldn't publish package:"https://registry.npm.taobao.org/包名:unauthorized"错误
出现原因:使用的是淘宝源cnpm,登陆到的是cnpm
解决方法:切换到npmjs的网址,代码如下
npm config set registry http://registry.npmjs.org/