Npm install in Windows environment take too much time


#1

I write a travis configuration file in https://github.com/liudonghua123/react-material-electron/blob/search-replace-example/.travis.yml and want to build and publish to github release. Linux and MacOS environment works as expected, but windows build always build failed with timeout of npm i, so I debugged the output of npm i --verbose, I found that the request time for each npm package in Windows was too long conpared to Linux or MacOS.

Here are the log file of windows and linux.

https://api.travis-ci.org/v3/job/462627857/log.txt
https://api.travis-ci.org/v3/job/462627858/log.txt

For example, @material-ui/icons was take almost 15 times longer then the Linux environment.


#2

Have you tried running the same commands on local instances for each OS?

In general, I’ve found that Windows tends to be much slower running the same set of commands than Linux/Mac machines.