Skip to content

Instantly share code, notes, and snippets.

@tomchentw
Last active January 26, 2016 15:45
Show Gist options
  • Save tomchentw/3030fae417832c022232 to your computer and use it in GitHub Desktop.
Save tomchentw/3030fae417832c022232 to your computer and use it in GitHub Desktop.
npm set registry http://192.168.1.1:5080 # Use local-npm. See https://www.npmjs.com/package/local-npm
npm set progress=true
rm -rf node_modules
time npm install
> npm install 86.04s user 12.47s system 95% cpu 1:42.81 total
npm set progress=false
rm -rf node_modules
time npm install
> npm install 42.91s user 10.91s system 99% cpu 54.141 total
# Let's remove ~/.npm
rm -rf node_modules ~/.npm; npm set progress=true; time npm install
> npm install 81.18s user 12.45s system 38% cpu 4:02.30 total
rm -rf node_modules ~/.npm; npm set progress=false; time npm install
> npm install 44.60s user 11.51s system 94% cpu 59.184 total
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment