Electron Builder: Please specify author 'email' in the application package.json

Abstract: Resolve the Electron Builder error by adding an author object with a name and email to package.json.

Created: 2026-10-22 by

You must add an author object containing both a name and an email property to your application's package.json file. Electron Builder requires this metadata for proper package identification, license verification, and distribution signing. Without it, the build process will fail with a configuration error preventing artifact generation.

Understanding the Requirement

Electron Builder relies heavily on the standard Node.js package.json structure to gather information about your application. While many developers focus solely on the main, scripts, and dependencies fields, the author field is critical for several reasons. First, it serves as the primary contact point for users or distributors who may need to report issues or request support. Second, during the packaging phase, tools like npm and yarn use this data to populate metadata in the final executable or installer. The specific error "Please specify author 'email' in the application package.json" occurs because the builder cannot locate a valid email address within the author definition. This is not merely a suggestion; it is a validation check enforced by the build script. If the email is missing, the build aborts immediately. This requirement ensures that every distributed package has traceable origin information, which is particularly important for enterprise environments or when publishing to app stores that require strict metadata compliance.

Locating the Configuration File

To resolve this issue, you need to edit the root package.json file of your Electron project. This file is located in the top-level directory of your project workspace, alongside your source code files. It is a JSON-formatted text file that defines the project's name, version, dependencies, and scripts. You can open it using any standard text editor, such as VS Code, Sublime Text, or even a simple command-line editor like nano or vim. Ensure you are editing the correct package.json. If your project uses a monorepo structure or has nested packages, verify that you are modifying the one associated with the main Electron application entry point. Incorrectly editing a dependency's package.json will have no effect on the build process and may break other parts of your system. Once opened, look for the existing author field. In many starter templates, this field might be a simple string, such as "author": "John Doe", or it might be completely absent.

Common Mistakes in Author Formatting

A frequent cause of this error is formatting the author as a plain string rather than an object. The npm specification allows the author field to be either a string or an object. However, Electron Builder explicitly parses the object format to extract the email. If your file contains:
"author": "Jane Smith"
You must change it to:
"author": {
  "name": "Jane Smith",
  "email": "[email protected]"
}
Another common mistake is leaving the email value empty, such as "email": "". While this is syntactically valid JSON, some validators treat an empty string as undefined or missing. Always provide a valid, non-empty email address. Additionally, ensure there are no trailing commas in your JSON structure, as this is a syntax error that will prevent the entire file from being parsed correctly.

Implementing the Fix

Open your package.json file and locate the author key. If it does not exist, add it at the same level as name, version, and description. If it exists as a string, replace the entire line with the object structure shown below. Replace the placeholder values with your actual details.
{
  "name": "my-electron-app",
  "version": "1.0.0",
  "description": "My awesome app",
  "main": "src/main.js",
  "author": {
    "name": "Your Name",
    "email": "[email protected]"
  },
  "dependencies": {
    "electron": "^28.0.0"
  }
}
After saving the file, clear your npm cache if necessary, though usually, a direct rebuild is sufficient. Run your build command again, typically npm run build or npx electron-builder. The error should now be resolved. If you encounter further issues, ensure that the email format is valid (contains an @ symbol and a domain). For more complex configuration scenarios, you might also need to adjust how Electron Builder handles metadata. For instance, if you are dealing with runtime errors related to undefined properties in your preload scripts, you can refer to our guide on fixing TypeError issues in Electron applications. See: How to Fix TypeError: Cannot read properties of undefined (reading 'whenReady').

Verifying the Build Output

Once the build succeeds, you can verify that the metadata was correctly embedded into your application artifacts. For Windows installers, right-click the generated .exe or .msi file and select Properties. Go to the Details tab, and you should see the Author name and Email populated correctly. On macOS, you can use the defaults command in the terminal to inspect the app's info.plist file.
defaults read /path/to/YourApp.app/Contents/Info.plist Author
This step confirms that Electron Builder successfully extracted the data from your package.json and integrated it into the final product. Proper metadata inclusion is essential for professional distribution and helps avoid rejection from certain software repositories or internal IT approval processes that scan executables for publisher information.

Best Practices for Maintenance

Maintaining accurate metadata in package.json should be part of your release checklist. Consider using environment variables or a separate configuration file if you need to manage different author details for development, staging, and production builds. However, for most single-developer or small-team projects, hardcoding the correct author object in the root package.json is the simplest and most reliable approach. Regularly audit your dependencies and project configurations to ensure they remain compliant with the latest versions of Electron Builder.

Frequently Asked Questions

Can I omit the author field entirely?

No, Electron Builder requires the author field to contain both a name and an email. Omitting it or providing an incomplete object will cause the build to fail. The email is mandatory for generating valid package metadata and ensuring traceability of the distributed software.

What if my email changes frequently?

If you need to update your contact information often, consider using a generic support email address or a role-based alias like [email protected]. This avoids the need to modify your codebase every time a team member leaves or changes roles, ensuring consistent build stability.

Does this affect the app's functionality at runtime?

No, the author metadata in package.json is used exclusively during the build and packaging phase. It does not impact the runtime behavior of your Electron application. Users will not see this information in the UI unless you explicitly display it in your About dialog or settings screen.

How do I handle multiple authors in one project?

The standard npm package.json schema supports only a single author object. If you have multiple contributors, list the primary maintainer in the author field and include a contributors array instead. Electron Builder will still validate the single author object for the required email field.

Why do I get a JSON parsing error after adding the author?

JSON is strict about syntax. Ensure you have added commas between all properties and enclosed strings in double quotes. A missing comma after the previous line or a trailing comma after the last property in the object will cause the parser to fail. Use a JSON validator tool to check your file before running the build.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More