The command npm prune can help clean up resulting garbage of crashes. Though, operation is not always normal as it should be and crashes and mistakes happen. -json changes that npm prune made or would have made with -dry-run are printed as a JSON object.Įxtraneous modules are pruned automatically (normal operations), hence this command is only needed with the -production flag.-dry-run indicates that you don't want npm to make any changes and that it should only report what it would have done. -no-production will negate NODE_ENV being set to production.-production - If the -production flag is specified, or the NODE_ENV environment variable is set to production, the packages specified in your devDependencies will be removed.If a package name is provided, then only packages matching one of the supplied names are removed.Įxtraneous packages are those present in the node_modules folder, but not listed as any package's dependency list. Npm install Remove extraneous packages with NPM prune
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |