update webpack mac code example Example 1: how to update webpack mac yarn add webpack --dev Example 2: how to update webpack mac npm install --save-dev webpack