webpack install line command code example Example 1: webpack install npm install --save-dev webpack-cli Example 2: npm webpack yarn add webpack --dev