ping registry.npm.js.org to tell whether we can install npm dependencies

This commit is contained in:
Avital Oliver
2013-01-25 11:31:31 -08:00
committed by David Glasser
parent f31457a017
commit 4e1d357f88

View File

@@ -234,7 +234,7 @@ var meteorNpm = module.exports = {
// dependencies. `npm install` times out after more than a minute.
_ensureConnected: function () {
try {
Future.wrap(files.getUrl)("http://npmjs.org").wait();
Future.wrap(files.getUrl)("http://registry.npmjs.org").wait();
} catch (e) {
throw new Error(
"Can't install npm dependencies. Check your internet connection and try again.");