解决node-sassbinding.node问题

解决node-sassbinding.node问题

2023年7月7日发(作者:)

解决问题使⽤node-sass遇到了错误,google了⼀圈没发现⼏个有帮助的,参考了⼀个答案,最终解决了这个问题。在这⾥做个笔记,给碰到同样问题的⼈。2020-06-14 更新:最终发现是mac下python的问题,重新安装⼀下就好了:brew reinstall python@2错误的log:ERROR in ./src/ui/styles/ (./node_modules/css-loader/dist/!./node_modules/sass-loader/dist/!./src/ui/styles/)Module build failed (from ./node_modules/sass-loader/dist/):Error: Missing binding YOUR_PROJECT_PATH/node_modules/node-sass/vendor/darwin-x64-72/de Sass could not find a binding for your current environment: OS X 64-bit with bindings for the following environments: - OS X 64-bit with usually happens because your environment has changed since running `npm install`.Run `npm rebuild node-sass` to download the binding for your current environment. at s (YOUR_PROJECT_PATH/node_modules/node-sass/lib/:15:13) at Object. (YOUR_PROJECT_PATH/node_modules/node-sass/lib/:14:35) at Module._compile (YOUR_PROJECT_PATH/node_modules/v8-compile-cache/:192:30) at ._extensions..js (internal/modules/cjs/:770:10) at (internal/modules/cjs/:628:32) at ._load (internal/modules/cjs/:555:12) at e (internal/modules/cjs/:666:19) at require (YOUR_PROJECT_PATH/node_modules/v8-compile-cache/:161:20) at getDefaultSassImplementation (YOUR_PROJECT_PATH/node_modules/sass-loader/dist/:24:10) at getSassImplementation (YOUR_PROJECT_PATH/node_modules/sass-loader/dist/:19:72) at (YOUR_PROJECT_PATH/node_modules/sass-loader/dist/:40:61) @ ./src/ui/styles/ 2:26-143 @ ./src/ui/ @ ./src/ui/注意错误log中的路径是:node_modules/node-sass/vendor/darwin-x64-72/m rebuild node-sass会去下载对应的。如果⽤npm rebuild node-sass 下载失败,可以尝试⼿动下载对应的。具体步骤:

发布者:admin,转转请注明出处:http://www.yc00.com/news/1688684872a162432.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信