#75·npkill

Issue with pnpm and Windows

Author: vduranteCreated Apr 8, 2020Updated Apr 10, 2020

Describe the bug I have installed node modules using pnpm and using npkill causes an error

To Reproduce Steps to reproduce the behavior:

  1. Run pnpm install in any node project
  2. Try to use npkill through the command pnpx npkill
  3. Select the project
  4. Error

The following error happens on pretty much the whole .pnpm folder:

Error: ENOTEMPTY: directory not empty, rmdir 'C:\Repos\Testing\node_modules\.pnpm\registry.npmjs.org\yargs

  • OS: Windows
  • Version: v0.7.0

FYI, the pnpm folders use syslinks extensively. I understand this tool is not meant to support pnpm, but maybe the solution to such issue is as simple as changing a few lines and achieving full compatibility with pnpm.

Apparently, using rmdir command on Windows works.