Installing from npm is always a pain from this side of the planet, particularly when you have a lot of dependencies to install and particularly when you've experienced it from a computer located in North America.
The npm Australian mirror is a synchronised "full fat" version of the npm registry—that is, it contains package metadata and the tarball attachments themselves. The mirror runs out of the AWS Sydney datacentre.
Please note that this is not an official project of npm Inc. and is not officially affiliated with npm Inc. or Isaac Schlueter (although npm Inc. is kind enough to offer support where needed!)
If you use the main npm registry you're now taking advantage of Fastly delivering your tarballs via their CDN and they have an endpoint in Australia. If you'd like to try and decrease the latency problems a little more then you can try out the npm Australia mirror.
All you need to do is set your npm registry to:
You won't be able to publish to it, so you have switch back to the standard registry to do that. You either have to remove or comment out that line, or be a little more clever.
npm install npmrc -g then run
npmrc to initialise your ~/.npmrcs directory with your default npm configuration. Then type
npmrc -c au to make a new configuration named "au".
npm set registry http://registry.npmjs.org.au/
Then you can switch between the default and the au registries with
npmrc default and
Please note that this registry is not on a particularly fast link, so don't hammer it! Donations or other support welcome from interested to upgrade the service.
Please do not attempt to replicate from the Australian mirror, if you want to make your own mirror, replicate from registry.npmjs.org.
npm is © Isaac Z. Schlueter, the npm Australian mirror is not affiliated with Isaac Z. Schlueter, npm Inc. or the official npm project in any way.