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