mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-14 17:56:16 +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 {
|
try {
|
||||||
require('../../package.json');
|
require('../../package.json');
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
if (e.code === 'ENOENT') {
|
if (e.code === 'MODULE_NOT_FOUND') {
|
||||||
console.warn('package.json not found.');
|
console.warn('package.json not found.');
|
||||||
console.log('Populating package.json...');
|
console.log('Populating package.json...');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user