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.

Unable to install on darwin (inotify@1.4.2: The platform "darwin" is incompatible with this module.)

See original GitHub issue
  • Version: 20.26.1
  • electron-updater Version: 3.0.3
  • Target: darwin

I get the following error when trying to install electron-builder on the mac:

yarn add dev electron-builder --latest
yarn add v1.7.0
[1/5] 🔍  Validating package.json...
[2/5] 🔍  Resolving packages...
⠂ dev(node:13730) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
[3/5] 🚚  Fetching packages...
error inotify@1.4.2: The platform "darwin" is incompatible with this module.
error Found incompatible module
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

85reactions
mrfeltoncommented, Jul 27, 2018

I think I have found my issue.

Should be

yarn add --dev electron-builder --latest

Not

yarn add dev electron-builder --latest

doh!

2reactions
mrfeltoncommented, Jul 27, 2018

No, the problem is as per my last post.

yarn add dev electron-builder --latest

This is trying to install 2 packages - dev and electron-builder. Where as what I means to do was to install electron-builder as a dev package with yarn add ---dev electron-builder --latest

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to solve "Unsupported platform for inotify@1.4.2"
Run the below command to remove the dev package. npm uninstall dev --save. I hope I'm able to help with this answer.
Read more >
Unable to build on macOS Apple silicon - Joplin Forum
However, after yarn install from the root directory, I am facing an error as: ... darwin-arm64 architecture is incompatible with this module, link...
Read more >
I can't install TensorFlow-macos a… | Apple Developer Forums
And so, I updated my OS to Monterey Beta and tried to install TensorFlow-Metal a few days ago. However, all installing instruction commands...
Read more >
Darwin (operating system) - Wikipedia
Darwin is an open-source Unix operating system first released by Apple Inc. in 2000. It is composed of code derived from NeXTSTEP, BSD,...
Read more >
esbuild-darwin-arm64 - npm
The macOS ARM 64-bit binary for esbuild, a JavaScript bundler.. Latest version: 0.15.18, last published: 18 days ago.
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