吉林11选5开奖和值走势图:Visual Studio 2017使用淘宝镜像的方法

吉林11选5一定牛网 www.nocios.com 转载  2018-04-10   作者:凌雲木   我要评论

这篇文章主要介绍了Visual Studio 2017使用淘宝镜像的方法,小编觉得挺不错的,现在分享给大家,也给大家做个参考。一起跟随小编过来看看吧

使用VS2017还原NPM包时,因为要访问外网,安装时间特别漫长,而且等待很长时间也可能安装错误

npm安装

淘宝 NPM 镜像:一个完整 npmjs.org 镜像,你可以用此代替官方版本(只读),同步频率目前为 10分钟 一次以保证尽量与官方服务同步。

安装淘宝镜像

  1. 1 npm config set registry https://registry.npm.taobao.org
  2. 2 npm info underscore
  3. 3 修改VS2017Npm外部配置工具

Npm配置默认选项

需要添加以下路径
C:\Program Files\nodejs
C:\Users\82511\AppData\Roaming\npm
D:\Program Files\Git\bin

配置淘宝镜像

再次还原npm,出现如下的安装信息。

PATH=.\node_modules\.bin;%PATH%;d:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git\cmd;d:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git\mingw32\bin;C:\Program Files\nodejs;C:\Users\82511\AppData\Roaming\npm;D:\Program Files\Git\bin
"C:\Program Files\nodejs\npm.CMD" install
[email protected] E:\COLDDEMO\Vue
+-- @types/[email protected] 
+-- [email protected] 
+-- [email protected] 
+-- [email protected] 
| `-- [email protected] 
+-- [email protected] 
+-- [email protected] 
+-- [email protected] 
+-- [email protected] 
+-- [email protected] 
+-- [email protected] 
+-- [email protected] 
+-- [email protected] 
+-- [email protected] 
+-- [email protected] 
+-- [email protected] 
+-- [email protected] 
+-- [email protected] 
+-- [email protected] 

| `-- [email protected] 
+-- [email protected] 
+-- [email protected] 
+-- [email protected] 
| `-- [email protected] 
+-- [email protected] 
+-- [email protected] 
+-- [email protected] 
+-- [email protected] 
+-- [email protected] 
+-- [email protected] 
+-- [email protected] 
+-- [email protected] 
+-- [email protected] 
+-- [email protected] 
| +-- [email protected] 
| `-- [email protected] 
`-- [email protected]2.1 
 `-- [email protected] 
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected]^1.0.0 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

Npm还原成功示意图

以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持脚本之家。

相关文章

最新评论