making package json latest dependencies code example Example 1: install dependencies npm npm install Example 2: npm install and add to dependancies npm i packageName -save