Error: Cannot find module 'webpack/lib/node/NodeTemplatePlugin' Require stack: code example
Example 1: Cannot find module '../lib/utils/unsupported.js'
sudo rm -rf /usr/local/lib/node_modules/npm
brew reinstall node
Example 2: Error: Cannot find module 'webpack/lib/node/NodeTemplatePlugin'
npm install --save-dev webpack webpack-cli html-webpack-plugin webpack-dev-server webpack-dev-middleware