Answer the question
In order to leave comments, you need to log in
How to remove only 'production' packages (which are listed in “dependencies” in package.json) via command line in npm?
There is a command in npm:
“npm prune --production” - removes only the dev packages listed in “devDependencies” in package.json (i.e. purge the project of all packages NOT listed in “dependencies”)
How to remove packages listed only in "dependencies"? You can manually delete folders in node_modules, but I would like to use the npm command.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question