当执行npm publish 时，出现unauthorized 和 is not in the npm registry
当执行npm publish，发生了如下错误：
```
appledeMacBook-Pro:nini-react apple$ npm publish
npm ERR! publish Failed PUT 401
npm ERR! code E401
npm ERR! 404 unauthorized Login first: nini-react
npm ERR! 404
npm ERR! 404  'nini-react' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/apple/.npm/_logs/2018-02-04T00_32_35_475Z-debug.log
appledeMacBook-Pro:nini-react apple$ 
```
起先以为是账户的问题，我就执行了npm adduser 和 npm login  都不行。公司的电脑都是可以的!哪位大神帮帮忙！
您首先执行下` npm adduser `，输入您相应的` Username `、` Password `、` Email: (this IS public) `，关键的一步来了!
```
Logged in as 您的Username on https://registry.npmjs.org/.
```
如果` on `后面不是` https://registry.npmjs.org/ `，而是其他的镜像，比如我们大家常见的淘宝镜像：
```
http://registry.npm.taobao.org/
```
那么您首先替换成原来的，替换成原来执行如下命令：
```
npm config set registry https://registry.npmjs.org/
```
最后，替换完毕再执行` npm adduser `、` npm publish `，这样应该就ok了！