在os X下使用全局安装需要使用sudo提升权限. 请看这一句npm ERR! Please try running this command again as root/Administrator. 如果你使用了nvm的话,就不需要了