npm install to dependcencies code example Example 1: install dependencies npm npm install Example 2: npm install and add to dependancies npm i packageName -save