how to save dependencies in package.json in dev code example Example: npm install dev dependencies npm install <package-name> --save-dev