设置阿里仓库 npm config set registry https://registry.npm.taobao.org/
设置官方仓库 npm config set registry https://registry.npmjs.org/
获取仓库地址 npm config get registry
其他常用命令:
npm update/uninstall moduleName 更新或卸载某个包;
npm list 查看当前目录下已安装的包;
npm root -g查看全局安装的包的路径;
npm help查看全部命令;