NPM prune

Behrang Saeedzadeh 03 October 2018

If the --production flag is specified or the NODE_ENV environment variable is set to production, this command will remove the packages specified in your devDependencies:

$ npm prune --production