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

created at 11-25-2021 views: 5

solution

First you need to install node.js

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.

Please log in to leave a comment.