diff --git a/packages/create-react-app/createReactApp.js b/packages/create-react-app/createReactApp.js index 4bfd9171633..9db8860cc8f 100755 --- a/packages/create-react-app/createReactApp.js +++ b/packages/create-react-app/createReactApp.js @@ -516,7 +516,7 @@ function checkIfOnline(useYarn) { } return new Promise(resolve => { - dns.resolve('registry.yarnpkg.com', err => { + dns.lookup('registry.yarnpkg.com', err => { resolve(err === null); }); });