Désinstaller pnpm
Supprimer globalement les packages installés#
Avant de supprimer la CLI pnpm, il peut être judicieux de supprimer tous les packages globaux qui ont été installés par pnpm.
To list all the global packages, run pnpm ls -g. Il existe deux manières de supprimer les packages globaux:
- Run
pnpm rm -g <pkg>...with each global package listed. - Run
pnpm root -gto find the location of the global directory and remove it manually.
Supprimer l'interface de commande de pnpm#
If you used the standalone script to install pnpm, then you should be able to uninstall the pnpm CLI by removing the pnpm home directory:
rm -rf "$PNPM_HOME"
You might also want to clean the PNPM_HOME env variable in your shell configuration file ($HOME/.bashrc, $HOME/.zshrc, $HOME/.config/fish/config.fish, or $HOME/.config/powershell/profile.ps1).
Si vous avez utilisé npm pour installer pnpm, vous devez utiliser npm pour désinstaller pnpm :
npm rm -g pnpm
Supprimer la mémoire d'adressage globale#
rm -rf "$(pnpm store path)"
If you used pnpm in non-primary disks, then you must run the above command in every disk, where pnpm was used.
pnpm creates one store per disk. On a disk other than the one with the pnpm home
directory, the store is a .pnpm-store directory near the root of the disk, or
node_modules/.pnpm-store inside the project.
Removing the cache, state, and configuration#
pnpm also writes to these directories. Remove them too:
- the cache directory, see
cacheDirfor its default location - the state directory, see
stateDirfor its default location - the directory of the global configuration file, see Global configuration