From 2c8cef6e9229316f046e27113c8b2bb7cb3182dd Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Wed, 10 Jan 2018 12:58:18 -0500 Subject: [PATCH] updated error code for missing package.json @pitaj --- src/cli/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli/index.js b/src/cli/index.js index f5b2075166..07efaadf5e 100644 --- a/src/cli/index.js +++ b/src/cli/index.js @@ -10,7 +10,7 @@ var dirname = require('./paths').baseDir; try { require('../../package.json'); } catch (e) { - if (e.code === 'ENOENT') { + if (e.code === 'MODULE_NOT_FOUND') { console.warn('package.json not found.'); console.log('Populating package.json...');