Build Instructions (Linux)

    • At least 25GB disk space and 8GB RAM.
    • Python 2.7.x. Some distributions like CentOS 6.x still use Python 2.6.x so you may need to check your Python version with python -V.

      Please also ensure that your system and Python version support at least TLS 1.2. For a quick test, run the following script:

      If the script returns that your configuration is using an outdated security protocol, use your system’s package manager to update Python to the latest version in the 2.7.x branch. Alternatively, visit https://www.python.org/downloads/ for detailed instructions.

    • Node.js. There are various ways to install Node. You can download source code from and compile it. Doing so permits installing Node on your own home directory as a standard user. Or try repositories such as NodeSource.

    • Development headers of GTK 3 and libnotify.

    On Ubuntu >= 20.04, install the following libraries:

    1. $ sudo apt-get install build-essential clang libdbus-1-dev libgtk-3-dev \
    2. libnotify-dev libasound2-dev libcap-dev \
    3. libcups2-dev libxtst-dev \
    4. libxss1 libnss3-dev gcc-multilib g++-multilib curl \
    5. gperf bison python3-dbusmock openjdk-8-jre
    1. $ sudo apt-get install build-essential clang libdbus-1-dev libgtk-3-dev \
    2. libnotify-dev libgnome-keyring-dev \
    3. libasound2-dev libcap-dev libcups2-dev libxtst-dev \
    4. libxss1 libnss3-dev gcc-multilib g++-multilib curl \
    5. gperf bison python-dbusmock openjdk-8-jre

    On RHEL / CentOS, install the following libraries:

    On Fedora, install the following libraries:

    1. libgnome-keyring-devel xorg-x11-server-utils libcap-devel \
    2. cups-devel libXtst-devel alsa-lib-devel libXrandr-devel \
    3. nss-devel python-dbusmock openjdk-8-jre

    On Arch Linux / Manjaro, install the following libraries:

    1. $ sudo pacman -Syu base-devel clang libdbus gtk2 libnotify \
    2. libgnome-keyring alsa-lib libcap libcups libxtst \
    3. libxss nss gcc-multilib curl gperf bison \
    4. python2 python-dbusmock jdk8-openjdk

    Other distributions may offer similar packages for installation via package managers such as pacman. Or one can compile from source code.

    If you want to build for an arm target you should also install the following dependencies:

    1. $ sudo apt-get install libc6-dev-arm64-cross linux-libc-dev-arm64-cross \
    2. g++-aarch64-linux-gnu

    And to cross-compile for arm or ia32 targets, you should pass the parameter to gn gen:

    1. $ gn gen out/Testing --args='import(...) target_cpu="arm"'

    See

    Prebuilt clang will try to link to libtinfo.so.5. Depending on the host architecture, symlink to appropriate libncurses:

    The default building configuration is targeted for major desktop Linux distributions. To build for a specific distribution or device, the following information may help you.

    By default Electron is built with prebuilt clang binaries provided by the Chromium project. If for some reason you want to build with the clang installed in your system, you can specify the clang_base_path argument in the GN args.

    1. $ gn gen out/Testing --args='import("//electron/build/args/testing.gn") clang_base_path = "/usr/local/bin"'

    Building Electron with compilers other than clang is not supported.