Prepare a bug report
A production or development bug needs an environment report that maintainers can reproduce.
Next.js 16+ · Command
next info prints system, toolchain, dependency, and Next.js configuration details for diagnosing issues and preparing bug reports. Use --verbose for additional debugging information.
The command inspects the current system and Next.js project, then prints environment details useful for reporting bugs. With --verbose, it gathers additional debugging information, including more details about the installation and related packages.
next info [--verbose]| Name | Type | Description |
|---|---|---|
--verbose | boolean | Optional flag that collects additional debugging information. |
-h, --help | flag | Optional alias that displays command help. |
Writes diagnostic information about the current system, installed binaries and package versions, and Next.js configuration to the terminal.
next info to produce a reproducible environment snapshot for a Next.js bug report.--verbose expands the report for deeper troubleshooting.next info --verboseRun this from the project root when a bug report or installation diagnosis needs more detailed environment and package information.
A production or development bug needs an environment report that maintainers can reproduce.
An installation problem may involve mismatched Node, package-manager, React, or Next.js versions.
A project’s local configuration and dependency context need to be inspected from the terminal.
next info do?next info prints diagnostic details about the current system and project. Its report includes the operating-system platform, architecture and version, available binaries, relevant package versions, and Next.js configuration.
Follow-up: What should be added when the normal report lacks enough installation detail? Run next info --verbose to collect additional debugging information about the installation and related packages.
next info in a bug report?Run next info from the project's root directory. The resulting report can be included with a GitHub issue so maintainers can inspect the environment and dependency versions.
Follow-up: Why does the project root matter? It lets the command inspect the local Next.js project and its installed package context rather than only the host machine.
The command reports versions for tools such as Node.js, npm, Yarn, and pnpm, along with packages including next, react, and react-dom. It also reports operating-system information and Next.js configuration.
Follow-up: Which option increases diagnostic coverage? --verbose requests additional debugging information beyond the standard environment summary.
nextnext devnext buildnext start