Anthony Fu @

pnpm on External disk

Jul 13, 2023 · 1min

If you tried to use pnpm to install a project on an external disk, it may not work right away because pnpm is heavily relying on symlinks, which doesn’t work cross mount points. To workaround this, you can add the following config to your .npmrc:


This will make pnpm copy the files instead of symlinking them. And expose the executables in node_modules/.bin correctly.

> comment on mastodon / twitter
CC BY-NC-SA 4.0 2021-PRESENT © Anthony Fu