Deletes all packages from
node_modules
that are extraneous packages (that are not listed in
package.json
)
npm prune
Before running the above command,
npm list --depth 0
showed several packages as extraneous. Extraneous are packages that are not listed in
dependencies
or
devDependencies
but installed in
node_modules
)
+-- gulp@4.0.2 extraneous
+-- gulp-sass@4.1.0 extraneous
`-- moment@2.27.0
by Valeri Tandilashvili
4 years ago
NPM
npm Tutorial for Beginners
0
Pro tip: use ```triple backticks around text``` to write in code fences