https://github.com/ddev/ddev-pnpm
Fast, disk space efficient pnpm package manager for DDEV
https://github.com/ddev/ddev-pnpm
ddev-get
Last synced: 3 months ago
JSON representation
Fast, disk space efficient pnpm package manager for DDEV
- Host: GitHub
- URL: https://github.com/ddev/ddev-pnpm
- Owner: ddev
- License: apache-2.0
- Created: 2023-11-09T05:14:39.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-11-19T00:36:32.000Z (7 months ago)
- Last Synced: 2026-03-01T16:48:24.682Z (4 months ago)
- Topics: ddev-get
- Language: Shell
- Homepage:
- Size: 80.1 KB
- Stars: 8
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://addons.ddev.com)
[](https://github.com/ddev/ddev-pnpm/actions/workflows/tests.yml)
[](https://github.com/ddev/ddev-pnpm/commits)
[](https://github.com/ddev/ddev-pnpm/releases/latest)
## DDEV pnpm
## Overview
[pnpm](https://pnpm.io/) is a fast, disk space efficient package manager.
This add-on integrates `pnpm` into your [DDEV](https://ddev.com/) project.
## Installation
```bash
ddev add-on get ddev/ddev-pnpm
ddev restart
```
After installation, make sure to commit the `.ddev` directory to version control.
## Usage
| Command | Description |
| ------- | ----------- |
| `ddev pnpm` | Run pnpm from within the web container |
Please refer to the documentation at [pnpm.io](https://pnpm.io)
## Advanced Customization
By default, this add-on assumes your `package.json` is in the root of the DDEV project.
In a monorepo that doesn't have a root level `package.json`, e.g.
```md
.
├── .ddev
├── backend/
│ └── composer.json
└── frontend/
└── package.json
```
To configure this addon to run `pnpm` commands for this example project, set a `PNPM_DIRECTORY` environment variable to `frontend`:
```bash
ddev dotenv set .ddev/.env.web --pnpm-directory=frontend
```
Make sure to commit the `.ddev/.env.web` file to version control.
## Credits
**Contributed and maintained by [@rellafella](https://github.com/rellafella)**