npm uninstall dev dependencies only code example Example: npm remove dev dependencies from node_modules npm uninstall --save-dev package_name