Skip to content

Commit

Permalink
Fix install on mac M1 - semver issue
Browse files Browse the repository at this point in the history
  • Loading branch information
renanccastro committed Feb 13, 2022
1 parent 962db08 commit 6836e9b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions npm-packages/meteor-installer/README.md
Expand Up @@ -12,6 +12,7 @@ npm install -g meteor

| NPM Package | Meteor Official Release |
|-------------|-------------------------|
| 2.6.1 | 2.6 |
| 2.6.0 | 2.6 |
| 2.5.7 | 2.5.6 |
| 2.5.6 | 2.5.5 |
Expand Down
2 changes: 1 addition & 1 deletion npm-packages/meteor-installer/install.js
Expand Up @@ -43,7 +43,7 @@ process.on('unhandledRejection', err => {
throw err;
});
if (os.arch() !== 'x64') {
const isValidM1Version = semver.gte(METEOR_LATEST_VERSION, '2.5.1-beta.3');
const isValidM1Version = semver.gte(semver.coerce(METEOR_LATEST_VERSION), '2.5.1-beta.3');
if (os.arch() !== 'arm64' || !isMac() || !isValidM1Version) {
console.error(
'The current architecture is not supported in this version: ',
Expand Down
2 changes: 1 addition & 1 deletion npm-packages/meteor-installer/package.json
@@ -1,6 +1,6 @@
{
"name": "meteor",
"version": "2.6.0",
"version": "2.6.1",
"description": "Install Meteor",
"main": "install.js",
"scripts": {
Expand Down

0 comments on commit 6836e9b

Please sign in to comment.