A dev dependency is a build and test dependency.
They
This command will modify the devependency properties of package.json
cd DirectoryOfPackage.Json # then yarn add [package] --dev # or npm install packageName --save-dev