Run webpack error: Error: Cannot find module’webpack/lib/node/NodeTemplatePlugin’

>
>

>

this situation is that webpack is not installed in this project. Even if webpack is installed globally, it is not found in the package.json in this project.
perform installation:

$ npm install webpack --save-dev

Then run webpack:

Read More: