npm install dev depend code example Example 1: npm install dev dependencies npm install --save-dev Example 2: npm install dev npm install --save-dev