question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error installing electron-forge in Linux with yarn: platform incompatible with module

See original GitHub issue

I 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:closed
  • Created 7 years ago
  • Comments:13 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
maleptcommented, Feb 28, 2017

@bendemboski thanks for pushing forward on this. As someone who runs Linux as their primary dev environment, it’s very much appreciated.

0reactions
maleptcommented, Mar 21, 2017

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found