diff --git a/lib/module.js b/lib/module.js index c3250608ebe..77ed83423b9 100644 --- a/lib/module.js +++ b/lib/module.js @@ -128,9 +128,6 @@ function readPackage(requestPath) { return false; } - if (json === '') - return packageMainCache[requestPath] = undefined; - try { var pkg = packageMainCache[requestPath] = JSON.parse(json).main; } catch (e) {