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.

Detect electron-prebuilt-compile version through package.json

See original GitHub issue

Why can’t the code in infer.js’s getVersion be replaced with the following? This would make it much easier to use a fork of electron-prebuilt-compile (which is frequently several versions behind the latest electron release).

const electronVersion = require('electron-prebuilt-compile/package.json').version

There’s a comment saying

electron-prebuilt-compile cannot be resolved because main does not point to a valid JS file.

but I’m not sure what that’s supposed to mean. Applying the above change in a fork of this seems to work fine.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
maleptcommented, Nov 22, 2018

FYI, I’ve pinged the maintainer of electron-prebuilt-compile and he’s released 3.0.10.

1reaction
maleptcommented, Nov 21, 2018

I’d rather not. I have an idea which I may get to this weekend.

Read more comments on GitHub >

github_iconTop Results From Across the Web

electron-prebuilt-compile - npm
Start using electron-prebuilt-compile in your project by running `npm i electron-prebuilt-compile`. There are 3 other projects in the npm ...
Read more >
electron-prebuilt-compile - npm package - Snyk
Ensure you're using the healthiest npm packages. Snyk scans all the packages in your projects for vulnerabilities and provides automated fix advice.
Read more >
Electron: Cannot find module 'electron-prebuilt' - Stack Overflow
Make sure electron-prebuilt had been added into development dependency in your package.json . You can install module by npm install ...
Read more >
electron-prebuilt | Yarn - Package Manager
Install Electron prebuilt binaries for command-line use using npm. This module helps you easily install the electron command for use on the command...
Read more >
Userland Package Dependencies | Electron - GitHub Pages
electron -prebuilt Install prebuilt electron binaries for the command-line using npm electron ; glslify A node.js-style module system for GLSL! ecosystem:stackgl ...
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