webpack 4 stable version package.json code example
Example 1: npm install webpack
npm install --save-dev webpack
Example 2: webpack install
npm install --save-dev webpack-cli
npm install --save-dev webpack
npm install --save-dev webpack-cli