diff --git a/src/logger.js b/src/logger.js
index <HASH>..<HASH> 100644
--- a/src/logger.js
+++ b/src/logger.js
@@ -4,7 +4,7 @@ import { format as fmt } from 'util';
 import chalkModule from 'chalk';
 
 const chalk = new chalkModule.constructor({
-  enabled: process.stderr.isTTY,
+  enabled: process.stderr && process.stderr.isTTY,
 });
 
 // Special chars.
Don't assume `process.stderr` is an object

It's typically not set in Browserify.