docs/lib/handle-exceptions.js

9 строки
299 B
JavaScript

process.on('uncaughtException', err => {
if (err.code === 'MODULE_NOT_FOUND') {
console.error('\n\n🔥 Uh oh! It looks you are missing a required npm module.')
console.error('Please run `npm install` to make sure you have all the required dependencies.\n\n')
}
console.error(err)
})