Installation guide

How to Install Nativefier on Windows, macOS and Linux?

Updated 25 November 20265 min readNativefier editorial
Terminal checking node and npm versions, installing Nativefier and building an Example desktop app

How to install Nativefier is mostly a question of preparing Node.js correctly, because the tool itself installs with one npm command. Once Node.js and npm work in your terminal, the same steps apply on Windows, macOS and Linux, and your first desktop app is only a single command away.

This walkthrough covers the shared requirements, the platform-specific details that trip people up, and the checks that prove everything is working before you start converting websites.

What You Need Before Installing

Nativefier is a Node.js command-line tool. The project README lists Node.js 16.9 or newer with npm 7.10 or newer, and macOS 10.13 or later on Apple computers. A current long-term support release of Node.js comfortably meets those numbers and includes npm automatically.

RequirementDetails
Node.js16.9 or newer, an LTS release is the simplest choice
npm7.10 or newer, bundled with Node.js
TerminalCommand Prompt, PowerShell, Terminal or a Linux shell
Internet accessNeeded to fetch the package and an Electron runtime
Disk spaceVaries, since each generated app includes Electron

After installing Node.js, open a new terminal window and run node -v and npm -v. Both should print a version number. If either command is missing, fix that before going any further.

Install Nativefier on Windows

Download the Windows installer from nodejs.org and keep the default option that adds Node.js to your PATH. Then open Command Prompt or PowerShell and run the global install. npm places the command inside your AppData npm folder, which the Node.js installer adds to PATH.

npm install -g nativefier

Windows PowerShell may block the generated nativefier.ps1 script with a message about running scripts being disabled. Use Command Prompt instead, or allow signed local scripts for your account with Set-ExecutionPolicy -Scope CurrentUser RemoteSigned. The Windows download guide covers this in more depth.

Install Nativefier on macOS

On a Mac, install Node.js with the official package or a version manager such as nvm. A version manager keeps global packages inside your home folder, which avoids permission errors and removes any temptation to install with sudo.

npm install -g nativefier
nativefier --help

The build produces a folder ending in -darwin-x64 or -darwin-arm64 that contains a regular .app bundle. Drag it into Applications if you want it to behave like any other Mac program.

Install Nativefier on Linux

Most distributions package Node.js, though repository versions can lag behind. Check the version after installing, and if it is older than 16.9, use a Node version manager to get a current release without touching system packages.

node -v
npm install -g nativefier

If npm reports permission errors for the global folder, point npm at a directory inside your home with npm config set prefix ~/.npm-global and add its bin folder to PATH. This keeps global tools isolated from the system.

Build and Open Your First App

With the command available, choose a website and run Nativefier with its address. Adding --name gives the app a clear title; otherwise Nativefier tries to infer one from the page.

nativefier --name "Example" "https://example.com"

Nativefier prints progress messages and finishes by naming the output folder. That folder follows the pattern AppName-platform-architecture, so you will see names such as Example-win32-x64 or Example-linux-x64 in the directory where you ran the command.

  • Windows: open Example.exe inside the generated folder.
  • macOS: open Example.app, then move it to Applications.
  • Linux: run the Example executable inside the folder.

Verifying the Installation

A healthy install answers three quick checks. The help command prints usage text, the global package list shows Nativefier, and a test build finishes with an output path. If one check fails, the problem is usually PATH or permissions rather than Nativefier itself.

nativefier --help
npm ls -g nativefier

Common Installation Mistakes

Most failed installs trace back to a handful of avoidable issues. Spotting them early saves a lot of reinstalling and guesswork.

  • Running the install in a terminal that was open before Node.js was installed, so PATH is stale.
  • Using sudo npm install -g on macOS or Linux, which creates root-owned files.
  • Mixing several Node.js installs, so npm and node point at different versions.
  • Forgetting the quotation marks around URLs that contain query strings or ampersands.

Nativefier is archived and read-only since September 2023. The install still works, but read the safety guide before wrapping accounts that hold sensitive data.

Using a Node Version Manager

A Node version manager such as nvm on macOS and Linux, or nvm-windows on Windows, installs Node.js inside your user folder. Global npm packages then land in a location you own, which removes most permission errors and makes switching Node.js versions painless when a project needs it.

After installing the manager, install an LTS release, select it as the default, and open a fresh terminal. Then run the Nativefier install command exactly as shown above.

nvm install --lts
nvm use --lts
npm install -g nativefier

Choosing Where Apps Are Saved

By default, Nativefier writes the generated folder into the directory where you run the command. Passing an output directory after the URL keeps builds organised, for example a dedicated Apps folder in your home directory.

nativefier "https://example.com" ~/Apps

Keeping all builds in one place makes it easier to rebuild, back up or remove them later, and it prevents stray app folders from appearing on your desktop or inside project directories.

Removing Nativefier Later

Uninstalling the tool takes one command: npm uninstall -g nativefier. Apps you already built keep working because they carry their own Electron runtime, so delete their folders separately when you no longer need them.

Installing Behind a Proxy or Firewall

Corporate networks sometimes block npm or the Electron download that happens during the first build. If the install stalls, configure npm with your proxy address using npm config set proxy and npm config set https-proxy, then try again from a fresh terminal.

When the Electron download is blocked rather than npm itself, the build fails after the package installs successfully. Ask your network team to allow the download, or build on a personal machine and copy the finished app folder across.

Conclusion

How to install Nativefier boils down to a working Node.js setup, one global npm command and a quick test build. Windows users may need the PowerShell policy fix, Mac users should avoid sudo, and Linux users benefit from a user-level npm prefix.

With the tool in place, explore the command options to set icons, window sizes and injected styles for every app you create.