Problem

npm ERR! network In most cases you are behind a proxy or have bad network settings.

Solution

npm config set fetch-retries 5

npm config set fetch-retry-mintimeout 600000

npm config set fetch-retry-maxtimeout 1200000

npm config set fetch-timeout 1800000