Error installing electron-forge in Linux with yarn: platform incompatible with module
See original GitHub issueI was just trying to install electron-forge
with yarn and it won’t install, saying that “linux” platform is incompatible with the module macos-alias
. npm
installs correctly (doesn’t even throws a warning about macos-alias
).
yarn global add electron-forge --prefix ~/.npm-global
Throws (without the #
, of course, just for highlight the error part):
# yarn global v0.20.3
# [1/4] Resolving packages...
# warning electron-forge > zip-folder > archiver > glob > minimatch@0.3.0:
# Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
# warning electron-forge > electron-windows-store > flatten-packages >wrench@1.5.9:
# wrench.js is deprecated! You should check out
# fs-extra (https://github.com/jprichardson/node-fs-extra) for any operations
# you were using wrench for. Thanks for all the usage over the years.
# warning electron-forge > electron-packager > asar > mksnapshot > request > node-uuid@1.4.7:
# use uuid module instead
# warning electron-forge > nugget > progress-stream > through2 > xtend >object-keys@0.4.0:
# [2/4] Fetching packages...
# warning appdmg@0.4.5: The platform "linux" is incompatible with this module.
# info "appdmg@0.4.5" is an optional dependency and failed compatibility check. # Excluding it from installation.
error macos-alias@0.2.11: The platform "linux" is incompatible with this module.
error Found incompatible module
info Visit https://yarnpkg.com/en/docs/cli/global for documentation about this command.
Is this a problem of electron-forge
with yarn
(like some configuration) or a yarn
specific one?
Issue Analytics
- State:
- Created 7 years ago
- Comments:13 (11 by maintainers)
Top Results From Across the Web
Error installing electron-forge in Linux with yarn: platform ...
I was just trying to install electron-forge with yarn and it won't install, saying that "linux" platform is incompatible with the module ......
Read more >Cannot install packages via yarn in electron project (Python ...
Well, it seems you are running windows, and one of the modules you are trying to install is incompatible with it.
Read more >@electron-forge/cli | Yarn - Package Manager
A complete tool for building modern Electron applications. Electron Forge unifies the existing (and well maintained) build tools for Electron development into a ......
Read more >CLI - Electron Forge
To use the Forge CLI, install the @electron-forge/cli module into your project as a ... This command will package your application into a...
Read more >Build script returned non-zero exit code: 2 2:46:20 PM ...
To use it you will have to install the @electron-forge/cli module from NPM into your ... Installation. js" run test:e2e yarn run v1....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@bendemboski thanks for pushing forward on this. As someone who runs Linux as their primary dev environment, it’s very much appreciated.
@kevingelion I think @paulcbetts commented somewhere (don’t remember where, sorry) that the problem you mention is a big blocker in version controlling
yarn.lock
for Electron apps.