diff --git a/packages/cli/src/commands/doctor/checkInstallation.js b/packages/cli/src/commands/doctor/checkInstallation.js index 13ef4237a..1a42a7f79 100644 --- a/packages/cli/src/commands/doctor/checkInstallation.js +++ b/packages/cli/src/commands/doctor/checkInstallation.js @@ -17,6 +17,7 @@ const isSoftwareInstalled = async command => { }; const doesSoftwareNeedToBeFixed = ({version, versionRange}) => - version === 'Not Found' || !semver.satisfies(version, versionRange); + version === 'Not Found' || + !semver.satisfies(semver.coerce(version), versionRange); export {PACKAGE_MANAGERS, isSoftwareInstalled, doesSoftwareNeedToBeFixed};