Search code examples
pnpm

Pnpm cannot find modules after project renaming


After renaming project folder pnpm throws error "Cannot find module...".

At first times pnpm gives me a message for changing "virtual-store-dir", but I'm not receiving them any more, just getting an error.

So, how safety to rename project folder?


Solution

  • run pnpm i after renaming, this will recreate node-modules for the new directory name