运行 cloudv3
他这是运行jar包 执行webpack的package.json 到外面的node_modules webpack -v undefined的时候 先把 dyclound 下的 node-modules删除 然后安装webpack webpack@4.46.0 -g npm install webpack-cli -g 1.点击安装webpack 监视后 —报错node-sass------ [npminstall:runscript:error] node-sass@4.5.3 scripts.postinstall run “node scripts/build.js” error: Error [RunScriptError]: Run “C:\Windows\system32\cmd.exe /d /s /c node scripts/build.js” error, exit code 1 at ChildProcess. (D:\software\nvm\v12.20.0\node_modules\cnpm\node_modules\runscript\index.js:96:21) at ChildProcess.emit (events.js:314:20) at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12) { stdio: [Object], exitcode: 1 }
安装node-sass@4.14.1
2.再次点击监视 ERROR in ./cloud-v3/platform/role/platform/main.scss Module build failed (from ./node_modules/_style-loader@3.3.1@style-loader/dist/cjs.js): TypeError: this.getOptions is not a function at Object.loader (E:\dy-clound\node_modules_style-loader@3.3.1@style-loader\dist\index.js:19:24) @ ./cloud-v3/platform/role/platform/main.js 11:11-33
安装 cnpm install style-loader@2.0.0
3.再次点击监视 好了 大概是这个样子 [./cloud-v3/platform/dyadmin/main.js] 2.96 KiB {dyadmin} [built] [./cloud-v3/platform/eshop/ads/banner/main.js] 2.04 KiB {eshop/ads/banner} [built] [./cloud-v3/platform/eshop/tag/list/main.js] 726 bytes {eshop/tag/list} [built] + 960 hidden modules
运行new-active 1.初始化-- 监视– 报错
ERROR in ./new_active/src/views/filmViewingCalendar/App.vue (./node_modules/_babel-loader@8.2.3@babel-loader/lib!./node_modules/_vue-loader@14.2.4@vue-loader/lib/selector.js?type=script&index=0!./new_active/src/views/filmViewingCalendar/App.vue)
Module not found: Error: Can't resolve 'html2canvas' in 'E:\dy-clound\new_active\src\views\filmViewingCalendar'
@ ./new_active/src/views/filmViewingCalendar/App.vue (./node_modules/_babel-loader@8.2.3@babel-loader/lib!./node_modules/_vue-loader@14.2.4@vue-loader/lib/selector.js?type=script&index=0!./new_active/src/views/filmViewingCalendar/App.vue) 57:0-38 113:8-19
@ ./new_active/src/views/filmViewingCalendar/App.vue
@ ./new_active/src/views/filmViewingCalendar/main.js
ERROR in ./new_active/src/common/router/index.js
Module not found: Error: Can't resolve 'vue-router' in 'E:\dy-clound\new_active\src\common\router'
@ ./new_active/src/common/router/index.js 6:0-35 7:8-17 8:19-28
@ ./new_active/src/common/plugin/href/index.js
@ ./new_active/src/views/filmViewingCalendar/main.js
安装 vue-wechat-title vue-router html2canvas cnpm install vue-wechat-title vue-router html2canvas 2.再次运行 再次报错 vue-router 换个vue-router@3.1.3 成功 3.虽然成功 但是这个图标还是读不到 这时候下载 file-loader@2.0.0 注意这个版本可以用 最新的用不了
[./new_active/src/common/plugin/dialog/index.js] 4.92 KiB {filmViewingCalendar/index} [built]
[./new_active/src/common/plugin/href/index.js] 1.96 KiB {filmViewingCalendar/index} [built]
[./new_active/src/common/plugin/lazyImage/index.js] 192 bytes {filmViewingCalendar/index} [built]
[./new_active/src/common/plugin/scrollView/index.js] 186 bytes {filmViewingCalendar/index} [built]
[./new_active/src/common/plugin/swiper/index.js] 663 bytes {filmViewingCalendar/index} [built]
[./new_active/src/common/style/common.scss] 462 bytes {filmViewingCalendar/index} [built]
[./new_active/src/common/utils/config.js] 606 bytes {filmViewingCalendar/index} [built]
[./new_active/src/lib/comp/viewport.js] 3.18 KiB {filmViewingCalendar/index} [built]
[./new_active/src/lib/io/ajax.js] 6.52 KiB {filmViewingCalendar/index} [built]
[./new_active/src/lib/json/query.js] 2.4 KiB {filmViewingCalendar/index} [built]
[./new_active/src/views/filmViewingCalendar/App.vue] 2.17 KiB {filmViewingCalendar/index} [built]
[./new_active/src/views/filmViewingCalendar/main.js] 1.39 KiB {filmViewingCalendar/index} [built]
[./node_modules/_fastclick@1.0.6@fastclick/lib/fastclick.js] 25.4 KiB {filmViewingCalendar/index} [built]
+ 90 hidden modules
|