icebreaker-trash / uni-app-vue2-tailwind-hbuilder-template

uni-app-vue2-tailwind-hbuilder-template
16 stars 1 forks source link

运行报错 #1

Open fendo8888 opened 2 years ago

fendo8888 commented 2 years ago

ERROR Error loading vue.config.js: 08:52:41.884 ERROR Error: Cannot find module 'webpack' 08:52:41.889 Require stack: 08:52:41.889 - D:\uni-demo\uni-app-vue2-tailwind-hbuilder-template-master\node_modules\weapp-tailwindcss-webpack-plugin\dist\index.js 08:52:41.893 - D:\uni-demo\uni-app-vue2-tailwind-hbuilder-template-master\vue.config.js 08:52:41.894 - D:\development\HBuilderX.3.4.15.20220610\HBuilderX\plugins\uniapp-cli\node_modules\@vue\cli-service\lib\Service.js 08:52:41.899 - D:\development\HBuilderX.3.4.15.20220610\HBuilderX\plugins\uniapp-cli\bin\uniapp-cli.js 08:52:41.899 Error: Cannot find module 'webpack'

sonofmagic commented 2 years ago

你预先执行了安装命令了吗 npm i 或者 yarn ?

fendo8888 commented 2 years ago

你预先执行了安装命令了吗 npm i 或者 yarn ?

安装了

sonofmagic commented 2 years ago

那根目录的 node_modules 里,能找到 webpack 嘛? 假如找不到,试试 删了 yarn.lock 重新 yarn 一下