Skip to content

Commit

Permalink
Fix package manager version checking
Browse files Browse the repository at this point in the history
  • Loading branch information
malept committed Sep 25, 2017
1 parent 0778781 commit eafbb70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/check-system.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const YARN_WHITELISTED_VERSIONS = {
function warnIfPackageManagerIsntAKnownGoodVersion(packageManager, version, whitelistedVersions, ora) {
const osVersions = whitelistedVersions[process.platform];
const versions = osVersions ? `${whitelistedVersions.all} || ${osVersions}` : whitelistedVersions.all;
if (!semver.satisfies(version, versions)) {
if (!semver.satisfies(version.toString(), versions)) {
ora.warn(
`You are using ${packageManager}, but not a known good version.\n` +
`The known versions that work with Electron Forge are: ${versions}`
Expand Down

0 comments on commit eafbb70

Please sign in to comment.