How to Solve Error: Cannot find module ‘webpack/lib/RequestShortener’

Farewell:

Error: Cannot find module’webpack/lib/RequestShortener’

This is really clueless. Later, there was an article to solve other similar error reporting methods, and I borrowed it, and it really worked!

  1. npm install webpack –save-dev // After the installation is successful, there will be a prompt to install webpack-cli again
  2. npm install webpack-cli –save-dev

After that, it’s okay~


Read More:

Leave a Reply

Your email address will not be published. Required fields are marked *