How to use Taobao image in Visual Studio 2017

Time:2020-1-21

When using vs2017 to restore NPM package, because it takes a long time to access the Internet, the installation may be wrong if waiting for a long time

NPM installation

Taobao NPM image: a complete npmjs.org image. You can use this image instead of the official version (read-only). The synchronization frequency is currently 10 minutes to ensure the synchronization with the official service as much as possible.

Install Taobao image

  1. 1 npm config set registry https://registry.npm.taobao.org
  2. 2 npm info underscore
  3. 3 modify vs2017npm external configuration tool

NPM configuration default options

The following path needs to be added
C:\Program Files\nodejs
C:\Users\82511\AppData\Roaming\npm
D:\Program Files\Git\bin

Configure Taobao image

Restore NPM again, and the following installation information appears.


PATH=.\node_modules\.bin;%PATH%;d:\Program Files (x86)\Microsoft Visual Studio17\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git\cmd;d:\Program Files (x86)\Microsoft Visual Studio17\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git\mingw32\bin;C:\Program Files\nodejs;C:\Users511\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] 
 `-- [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 restore success diagram

The above is the whole content of this article. I hope it will help you in your study, and I hope you can support developepaer more.

Recommended Today

RCAST 35: add type to currency

– font ALT: Simsun; MSO font charset: 134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 680460288 22 0 262145 0;} @font-face {font-family:”Cambria Math”; panose-1:2 4 5 3 5 4 6 3 2 4; mso-font-charset:1; mso-generic-font-family:roman; mso-font-format:other; mso-font-pitch:variable; mso-font-signature:0 0 0 0 0 0;} @font-face {font-family:Calibri; Variable; Ose-1: 216301111; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 680460288 22 0 262145 0;} /\* Style […]