mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
ping registry.npm.js.org to tell whether we can install npm dependencies
This commit is contained in:
committed by
David Glasser
parent
f31457a017
commit
4e1d357f88
@@ -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.");
|
||||
|
||||
Reference in New Issue
Block a user