Skip to main content

Prerequisites

Before installing repo2pdf, ensure you have the following installed on your system:
  • Node.js version 18.0.0 or higher
  • git (required only for cloning remote repositories)
You can check your Node.js version by running node --version in your terminal

Installation methods

Verify installation

To verify that repo2pdf is working correctly, run it with NPX:
You should see the repo2pdf welcome banner:

Troubleshooting

If you see “command not found” when running npx repo2pdf, ensure:
  • Node.js and npm are properly installed
  • Your npm installation is in your system PATH
  • You have an active internet connection (for NPX to download packages)
This usually indicates a network or permissions issue:
If using global installation, you may need to use sudo on macOS/Linux:
repo2pdf requires Node.js 18 or higher. Update Node.js:
  • Visit nodejs.org to download the latest LTS version
  • Or use a version manager like nvm:

Next steps

Quick start

Convert your first repository to PDF

Configuration

Learn about customization options