1. Global installation webpack4.x
cnpm install webpack webpack-cli --g
2. Initialize npm
the init --Y CNPM (default is yes)
3. Installation dependencies
cnpm install
4. Add the file package.json
"Private": to true (to prevent the release of private npm package)