3***@qq.com
3***@qq.com
  • 发布:2023-01-08 14:26
  • 更新:2023-08-28 10:46
  • 阅读:532

sass 编译版本问题

分类:HBuilderX

[0;31m--> LibSass 的二进制文件(D:\HBuilderX\plugins\compile-node-sass\node_modules\node-sass-china\vendor\win32-x64-108\binding.node)缺失,请执行下面3条命令下载对应版本的二进制文件:(有可能引发此错误的原因是 Node 版本变更)[0m
[编译scss/sass] 10:29:06.466 mkdir -p D:\HBuilderX\plugins\compile-node-sass\node_modules\node-sass-china\vendor\win32-x64-108
[编译scss/sass] 10:29:06.466 cd D:\HBuilderX\plugins\compile-node-sass\node_modules\node-sass-china\vendor\win32-x64-108
[编译scss/sass] 10:29:06.466 curl -o binding.node http://cdn.npm.taobao.org/dist/node-sass/v4.7.2/win32-x64-108_binding.node
[编译scss/sass] 10:29:06.466 [0;31m--> MacOS 、Unix/Linux 请根据权限使用 sudo [0m

一开始是这个,但是我照着这个安装成功了之后又会报另外一个错误

node:internal/modules/cjs/loader:1243
[编译scss/sass] 10:31:08.539 return process.dlopen(module, path.toNamespacedPath(filename));
[编译scss/sass] 10:31:08.539 ^
[编译scss/sass] 10:31:08.539 Error: \?\D:\HBuilderX\plugins\compile-node-sass\node_modules\node-sass-china\vendor\win32-x64-108\binding.node is not a valid Win32 application.
[编译scss/sass] 10:31:08.539 \?\D:\HBuilderX\plugins\compile-node-sass\node_modules\node-sass-china\vendor\win32-x64-108\binding.node
[编译scss/sass] 10:31:08.539 at Module._extensions..node (node:internal/modules/cjs/loader:1243:18)
[编译scss/sass] 10:31:08.539 at Module.load (node:internal/modules/cjs/loader:1037:32)
[编译scss/sass] 10:31:08.539 at Module._load (node:internal/modules/cjs/loader:878:12)
[编译scss/sass] 10:31:08.539 at Module.require (node:internal/modules/cjs/loader:1061:19)
[编译scss/sass] 10:31:08.539 at require (node:internal/modules/cjs/helpers:103:18)
[编译scss/sass] 10:31:08.539 at module.exports (D:\HBuilderX\plugins\compile-node-sass\node_modules\node-sass-china\lib\binding.js:19:10)
[编译scss/sass] 10:31:08.539 at Object.<anonymous> (D:\HBuilderX\plugins\compile-node-sass\node_modules\node-sass-china\lib\index.js:14:35)
[编译scss/sass] 10:31:08.539 at Module._compile (node:internal/modules/cjs/loader:1159:14)
[编译scss/sass] 10:31:08.539 at Module._extensions..js (node:internal/modules/cjs/loader:1213:10)
[编译scss/sass] 10:31:08.539 at Module.load (node:internal/modules/cjs/loader:1037:32) {
[编译scss/sass] 10:31:08.539 code: 'ERR_DLOPEN_FAILED'
[编译scss/sass] 10:31:08.539 }
[编译scss/sass] 10:31:08.539 Node.js v18.12.1

我查了一下,又装了16.13.0版本的node.js 可以正常使用了
[编译scss/sass] 14:19:21.818 {
[编译scss/sass] 14:19:21.818 "status": 1,
[编译scss/sass] 14:19:21.819 "file": "D:/vue_file/test/less/footer.sass",
[编译scss/sass] 14:19:21.819 "line": 1,
[编译scss/sass] 14:19:21.819 "column": 9,
[编译scss/sass] 14:19:21.819 "message": "Invalid CSS after \"#footer{\": expected \"}\", was \"{}\"",
[编译scss/sass] 14:19:21.819 "formatted": "Error: Invalid CSS after \"#footer{\": expected \"}\", was \"{}\"\n on line 1 of footer.sass\n>> #footer{ {}\n\n --------^\n"

这是编写错误的提示

[编译scss/sass] 14:22:27.105 Rendering Complete, saving .css file...
[编译scss/sass] 14:22:27.106 Wrote CSS to D:\vue_file\test\less\footer.css
编写成功的提示

2023-01-08 14:26 负责人:无 分享
已邀请:
释怀_AAA

释怀_AAA

您好 请问解决了不 我也遇到了

要回复问题请先登录注册