Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
layout full
menu_item guides
title Electron
description How to install NodeGit with Electron

Return to all guides


Install for Electron

For an application that is built using Electron you'll need to have the engines.electron set to the version of Electron that you are targeting in your root package.json file.

For example if you have an Electron app that's targeting version 0.20.7 your package.json file would look something like:

{
  "name": "elec-app",
  "displayName": "My Electron app",
  "version": "0.0.1",
  "description": "",
  "main": "main.js",
  "author": "",
  "engines": {
    "electron": "0.20.7"
  }
}

And when doing an npm install or apm install inside of your Electron's root folder it will compile NodeGit targeting that version of Electron during the install.

NOTE: there are no pre-built binaries for Electron, you must rebuild NodeGit. Visit our building guides for help

Morty Proxy This is a proxified and sanitized view of the page, visit original site.