Mac install HbuilderX and run un-app error -------Error: Cannot find module'copy-webpack-plugin'

created at 11-25-2021 views: 10


First you need to install node.js


I downloaded 17.1.0. After the download is complete, install it. I won’t repeat the installation here.

After the installation is successful, open the terminal and execute it

npm install copy-webpack-plugin@5.0.3 -s

This way the error is resolved. Hope to help those in need.

created at:11-25-2021
edited at: 11-25-2021: