Skip to content

Commit 466beff

Browse files
committed
update error message on failed connection to use the npm explore npm run chrome cmd
1 parent 90ffa1a commit 466beff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lighthouse-cli/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,8 @@ lighthouse(url, flags, config)
157157
})
158158
.catch(err => {
159159
if (err.code === 'ECONNREFUSED') {
160-
console.error('Unable to connect to Chrome. Did you run ./scripts/launch-chrome.sh ?');
160+
console.error('Unable to connect to Chrome. Please run Chrome w/ debugging port 9222 open:');
161+
console.error(' npm explore -g lighthouse -- npm run chrome');
161162
} else {
162163
console.error('Runtime error encountered:', err);
163164
console.error(err.stack);

0 commit comments

Comments
 (0)