install webpack globally mac code example Example: webpack install npm install --save-dev webpack-cli