updated error code for missing package.json @pitaj

v1.18.x
Julian Lam 7 years ago
parent 4c7a275034
commit 2c8cef6e92

@ -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...');

Loading…
Cancel
Save