How do I delete directories where I've used pnpm to install packages?

13 Views Asked by At

Dos' del /S /F /Q tstpkg doesn't error, but it leaves the files.

Gnuwin32's rm gives the result below...

I need to bring up windows explorer to get it to go away. Is there any e.g. pnpm clean-up-after-yourself command that I've missed?

c:/srv/work> rm -rf tstpkg                                                                    
rm: cannot chdir from `tstpkg/node_modules/.pnpm/@[email protected]/node_modules/@jridgewell' to `resolve-uri': No such file or directory
rm: cannot chdir from `tstpkg/node_modules/.pnpm/@[email protected]/node_modules/@jridgewell' to `sourcemap-codec': No such file or directory
rm: cannot chdir from `tstpkg/node_modules/.pnpm/@[email protected]/node_modules/@nodelib' to `fs.scandir': No such file or directory
rm: cannot chdir from `tstpkg/node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@sveltejs' to `vite-plugin-svelte-inspector': No such file or directory
rm: cannot chdir from `tstpkg/node_modules/.pnpm/[email protected]/node_modules' to `balanced-match': No such file or directory
rm: cannot chdir from `tstpkg/node_modules/.pnpm/[email protected]/node_modules' to `anymatch': No such file or directory
rm: cannot chdir from `tstpkg/node_modules/.pnpm/[email protected]/node_modules' to `braces': No such file or directory
rm: cannot chdir from `tstpkg/node_modules/.pnpm/[email protected]/node_modules/@esbuild' to `win32-x64': No such file or directory
rm: cannot chdir from `tstpkg/node_modules/.pnpm/[email protected]/node_modules/@jridgewell' to `sourcemap-codec': No such file or directory
rm: cannot chdir from `tstpkg/node_modules/.pnpm/[email protected]/node_modules/@types' to `estree': No such file or directory
rm: cannot chdir from `tstpkg/node_modules/.pnpm/[email protected]/node_modules/@nodelib' to `fs.stat': No such file or directory
rm: cannot chdir from `tstpkg/node_modules/.pnpm/[email protected]/node_modules/@nodelib' to `fs.walk': No such file or directory
rm: cannot chdir from `tstpkg/node_modules/.pnpm/[email protected]/node_modules' to `fs.realpath': No such file or directory
rm: cannot chdir from `tstpkg/node_modules/.pnpm/[email protected]/node_modules' to `binary-extensions': No such file or directory
rm: cannot chdir from `tstpkg/node_modules/.pnpm/[email protected]/node_modules' to `is-extglob': No such file or directory
rm: cannot chdir from `tstpkg/node_modules/.pnpm/[email protected]/node_modules/@types' to `estree': No such file or directory
rm: cannot chdir from `tstpkg/node_modules/.pnpm/[email protected]/node_modules/@jridgewell' to `sourcemap-codec': No such file or directory
rm: cannot chdir from `tstpkg/node_modules/.pnpm/[email protected]/node_modules' to `braces': No such file or directory
rm: cannot chdir from `tstpkg/node_modules/.pnpm/[email protected]/node_modules' to `brace-expansion': No such file or directory
rm: cannot chdir from `tstpkg/node_modules/.pnpm/[email protected]/node_modules' to `minimist': No such file or directory
0

There are 0 best solutions below