-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improvements to Homebrew support (#345)
This PR adds two improvements to running the CLI on Homebrew: - we now check the supported Node.js version based on `node --version`, not by `process.versions.node` - this makes sure that if someone installs the CLI via Homebrew and does not have Node.js available globally, it shows him a nice error message rather than a weird error - we now check where the symlink to the executable leads via `fs.realpathSync(...)`, not via `execSync('realpath ...')` - this is because `realpath` is not available on macOS 12 and earlier by default, and also not in some Linux distributions - also because why should we run an external command when the same thing is built in to Node.js
- Loading branch information
Showing
4 changed files
with
73 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters