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