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