I. Background : During After installing node-gyp, using npm install the console timeout error report
As long as it used the install command will report this error.
Second, the solution
After a lot of investigation solution to this issue is resolved finally -
Reference Address: [ https://blog.csdn.net/wangxp/article/details/81535786]
1, when the first change to the use npm Taobao Mirror:
Permanent (recommended): npm config the SET Registry https://registry.npm.taobao.org
Temporary use: npm install the Node-Sass --registry = HTTP: //registry.npm.taobao.org
Why use Taobao mirror? Because it fast, because the slow before timing out.
2, commonly used commands, can solve some strange questions (also very important command): npm cache clean --force
So far, no report has been timed out errors friends ~
3, comes with a command npm version downgrade: npm -gi npm @ 4
(This command is reduced to version 4, may be behind @ with the version number)