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