mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-14 09:55:47 +01:00
updated error code for missing package.json @pitaj
This commit is contained in:
@@ -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...');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user