diff --git a/packages/gatsby/src/commands/develop.js b/packages/gatsby/src/commands/develop.js index 26b9306b908f0..f6f79476c0b7b 100644 --- a/packages/gatsby/src/commands/develop.js +++ b/packages/gatsby/src/commands/develop.js @@ -326,10 +326,9 @@ module.exports = async (program: any) => { // if (isSuccessful && (isInteractive || isFirstCompile)) { if (isSuccessful && isFirstCompile) { printInstructions(program.sitePackageJson.name, urls, program.useYarn) - } - - if (program.open) { - require(`opn`)(urls.localUrlForBrowser) + if (program.open) { + require(`opn`)(urls.localUrlForBrowser) + } } isFirstCompile = false