npm i --save-dev webpack webpack-dev-server webpack-cli code example
Example 1: npm dev server
$ npm install dev-server -g
Example 2: npm install webpack server
npm install webpack-dev-server --save-dev
$ npm install dev-server -g
npm install webpack-dev-server --save-dev