Last active
November 20, 2020 04:01
-
-
Save GavinJoyce/4f81d0bf879dad6b203e to your computer and use it in GitHub Desktop.
speeding up `npm install` by disabling the progress bar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with `react-native`: | |
npm set progress=false && rm -rf ~/.npm && rm -rf node_modules && npm cache clean && time npm install | |
npm install 83.72s user 26.03s system 100% cpu 1:49.32 total | |
npm set progress=true && rm -rf ~/.npm && rm -rf node_modules && npm cache clean && time npm install | |
npm install 199.30s user 27.32s system 91% cpu 4:08.29 total | |
-- | |
npm set progress=false && rm -rf ~/.npm && rm -rf node_modules && time npm install | |
npm install 70.27s user 22.12s system 120% cpu 1:16.85 total | |
npm set progress=true && rm -rf ~/.npm && rm -rf node_modules && time npm install | |
npm install 202.59s user 26.47s system 105% cpu 3:36.52 total |
node --version: 5.3.0
npm --version: 3.3.12
Without real: 0m25.757s, user: 0m2.675s, sys: 0m0.513s
With real: 0m26.468s, user: 0m2.372s, sys: 0m0.465s
Maybe spacemonkey's do exist..
$ node -v
> 5.3.0
$ npm -v
> 3.3.12
# with progress
npm install 110.43s user 15.62s system 33% cpu 6:13.81 total
# without progress
npm install 51.30s user 14.00s system 22% cpu 4:56.09 total
(master ✓)❯ node -v
v5.3.0
(master ✓)❯ npm -v
3.3.12
# with progress
npm install 65.97s user 4.15s system 35% cpu 3:16.78 total
# without progress
npm install 41.70s user 3.77s system 25% cpu 2:56.22 total
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
npm: 2.14.7
node: 4.2.1