how to add a dependency in package.json code example Example: npm install and add to dependancies npm i packageName -save