1***@qq.com
1***@qq.com
  • 发布:2019-12-09 17:08
  • 更新:2020-07-31 08:05
  • 阅读:18330

各位大佬这报错什么原因:Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):

分类:uni-app

17:03:47.056 Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
17:03:47.056 ModuleBuildError: Module build failed (from ./node_modules/sass-loader/lib/loader.js):
17:03:47.065 Error: \?\C:\Users\Administrator.npminstall_tarball\node-sass\4.13.0\win32-x64-79_binding.node is not a valid Win32 application.
17:03:47.066 \?\C:\Users\Administrator.npminstall_tarball\node-sass\4.13.0\win32-x64-79_binding.node
17:03:47.076 at Object.Module._extensions..node (module.js:681:18)
17:03:47.077 at Module.load (module.js:565:32)
17:03:47.091 at tryModuleLoad (module.js:505:12)
17:03:47.091 at Function.Module._load (module.js:497:3)
17:03:47.107 at Module.require (module.js:596:17)
17:03:47.107 at require (internal/module.js:11:18)
17:03:47.123 at module.exports (D:\rj\HBuilderX.2.4.2.20191115.full\HBuilderX\plugins\compile-node-sass\node_modules\node-sass-china\lib\binding.js:19:10)
17:03:47.124 at Object. (D:\rj\HBuilderX.2.4.2.20191115.full\HBuilderX\plugins\compile-node-sass\node_modules\node-sass-china\lib\index.js:14:35)
17:03:47.140 at Module._compile (module.js:652:30)
17:03:47.141 at Object.Module._extensions..js (module.js:663:10)
17:03:47.156 at Module.load (module.js:565:32)
17:03:47.156 at tryModuleLoad (module.js:505:12)
17:03:47.173 at Function.Module._load (module.js:497:3)
17:03:47.174 at Module.require (module.js:596:17)
17:03:47.191 at require (internal/module.js:11:18)
17:03:47.192 at Object. (D:\rj\HBuilderX.2.4.2.20191115.full\HBuilderX\plugins\compile-node-sass\node_modules\node-sass-china\index.js:8:22)
17:03:47.206 at runLoaders (D:\rj\HBuilderX.2.4.2.20191115.full\HBuilderX\plugins\uniapp-cli\node_modules\webpack\lib\NormalModule.js:301:20)
17:03:47.207 at D:\rj\HBuilderX.2.4.2.20191115.full\HBuilderX\plugins\uniapp-cli\node_modules\loader-runner\lib\LoaderRunner.js:367:11
17:03:47.223 at D:\rj\HBuilderX.2.4.2.20191115.full\HBuilderX\plugins\uniapp-cli\node_modules\loader-runner\lib\LoaderRunner.js:233:18
17:03:47.224 at runSyncOrAsync (D:\rj\HBuilderX.2.4.2.20191115.full\HBuilderX\plugins\uniapp-cli\node_modules\loader-runner\lib\LoaderRunner.js:143:3)
17:03:47.241 at iterateNormalLoaders (D:\rj\HBuilderX.2.4.2.20191115.full\HBuilderX\plugins\uniapp-cli\node_modules\loader-runner\lib\LoaderRunner.js:232:2)
17:03:47.242 at iterateNormalLoaders (D:\rj\HBuilderX.2.4.2.20191115.full\HBuilderX\plugins\uniapp-cli\node_modules\loader-runner\lib\LoaderRunner.js:221:10)
17:03:47.258 at D:\rj\HBuilderX.2.4.2.20191115.full\HBuilderX\plugins\uniapp-cli\node_modules\loader-runner\lib\LoaderRunner.js:236:3
17:03:47.259 at Object.context.callback (D:\rj\HBuilderX.2.4.2.20191115.full\HBuilderX\plugins\uniapp-cli\node_modules\loader-runner\lib\LoaderRunner.js:111:13)
17:03:47.275 at Object.module.exports (D:\rj\HBuilderX.2.4.2.20191115.full\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\packages\webpack-preprocess-loader\index.js:60:10)
17:03:47.276 ERROR Build failed with errors.

2019-12-09 17:08 负责人:无 分享
已邀请:
x***@163.com

x***@163.com

你好,刚接触nodejs没几天 ,也碰到这问题,能说下具体的怎么解决吗?

1***@qq.com

1***@qq.com (作者) - seven

已解决,终于解决了

  • NauyEhUe

    请问老哥是怎么解决的。我也遇到了这样的问题

    2019-12-18 17:02

  • xiamu

    回复 NauyEhUe: 你应该是引入了官方css库,不但要引入uni.css文件,还要把那个static文件夹中的uni.tff文件也复制过来

    2020-01-03 10:59

  • NauyEhUe

    回复 xiamu: okay 谢谢老哥

    2020-01-10 16:37

要回复问题请先登录注册