Use NPM install package, is see more headache things, relatively slow, difficult to wait, after exploration, or found that there are ways to accelerate the method has two, let me one by one ways to:
1. Add parameter--registry= after NPM ... Specify the mirror source address
Install [Extended Name] [Other parameters]--registry=https://registry.npm.taobao.org-g
2. The second method I prefer, is to use CPM directly, without NPM, the collective steps are as follows
Install cmp --registry=https://registry.npm.taobao.org-g
Cmp-v
CMP (GNU diffutils) 2.8.1
Copyright (C) 2002 Free Software Foundation, Inc.
This program is comes with NO WARRANTY and to the extent permitted.
Redistribute copies of this program
Under the terms of the GNU general public License.
For more information on these matters, see the file named COPYING.
Written by Torbjorn Granlund and David MacKenzie.
These two methods, are very simple, after the log, I do not have to worry about the download problem
NPM Acceleration Solution