how to save a dependency as dev in npm code example Example: npm install dev dependencies npm install <package-name> --save-dev