Skip to main content

Install via npm

The easiest way to install the PRPM CLI is using npm:

Verify Installation

Check that PRPM is installed correctly:
You should see the version number of PRPM.

System Requirements

  • Node.js: 18.x or higher
  • npm: 9.x or higher
  • Operating Systems: macOS, Linux, Windows

Authentication Setup

Before publishing packages, you’ll need to authenticate:
This will open GitHub OAuth in your browser to authenticate. Check your authentication status:

Alternative: Use with npx

If you don’t want to install globally, you can use npx:
Using npx will download the CLI each time, which is slower than installing globally.

Configuration

PRPM stores configuration in ~/.prpmrc. View all configuration:
View a specific setting:
Set a configuration value:

Common Configuration Options

  • registry - Registry URL (default: https://registry.prpm.dev)
  • token - Authentication token (set automatically by prpm login)
  • telemetry - Enable/disable telemetry (default: true)

Environment Variables

You can also configure PRPM using environment variables:

Troubleshooting

Command not found

If prpm command is not found after installation:
  1. Check if npm global bin is in your PATH:
  2. Add npm global bin to PATH:

Permission errors

If you get EACCES errors:
  1. Change npm’s default directory (recommended):
  2. Or use sudo (less secure):
For more troubleshooting help, see the Troubleshooting Guide.

Next Steps

Quickstart

Install your first package

CLI Reference

Explore all commands