2.持久使用(推荐使用)打开cmd使用命令:
npm config set registry https://registry.npm.taobao.org // 配置后可通过下面命令来验证是否成功 npm config ls // 此时:metrics-registry = "http://registry.npm.taobao.org/"表示设置成功 //或 npm config get registry