npm install with save code example Example: npm install and add to dependancies npm i packageName -save