Skip to content

Feature: pnpm clean #6816

@LBF38

Description

@LBF38

Describe the user story

When changing some deps versions, migrating a project to pnpm or reinstalling packages w/ smaller versions, I find it useful to have a command to clean my node_modules folder in the project I'm working on. Therefore, the idea would be to have a pnpm clean command that wipes the node_modules folder.

Describe the solution you'd like

The solution would be a simple command to provide a simple way to entirely remove the node_modules folder from the project's folder. Then, this command could be combined with pnpm install to reinstall the deps.

Describe the drawbacks of your solution

It could have unwanted side effects ?

Describe alternatives you've considered

This solution could be done with other commands than from pnpm like with a rm -rf node_modules && pnpm install.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions