npm install package save to package.json code example Example: npm install in dev mode npm install packageName --save-dev