The Cannot find module webpack occurs when webpack is not globally installed. It is a problem with the npm script or application. You can try the following to combat the issue:
Ensure that you have installed the latest version of the webpack by running:
npm install webpack
If the above solution does not work, try linking a globally installed webpack to your project. In your project, open the terminal, and type:
npm link webpack