Removing extraneous packages
suggest changeExtraneous packages are installed in node_modules but not listed in package.json. Remove them with:
npm prune
To also drop devDependencies, pass --omit=dev. npm still accepts --production as the older spelling of that flag.
npm prune --omit=dev
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents