pnpm and devcontainers | Journal

pnpm and devcontainers

August 7, 2024
#docker #web

Fixing ERR_PNPM_ENOENT

The ERR_PNPM_ENOENT error can be particularly frustrating, but there's a straightforward fix. By setting the pnpm store directory to a location within the home directory, you can avoid permission issues that often cause this error. Here's the command to set the store directory:
🐚
pnpm config set store-dir /home/node/.local/share/pnpm/store

If you are migrating from yarn

  • I would suggest a full cleanup of node_modules