【问题标题】:Node Sass could not find a binding for your current environment: OS X 64-bit with Node.js 12.xNode Sass 找不到当前环境的绑定:OS X 64-bit with Node.js 12.x
【发布时间】:2021-02-19 08:54:52
【问题描述】:

我正在尝试构建一个 Angular 项目,但收到此错误:

ERROR in Module build failed (from ./node_modules/sass-loader/lib/loader.js):

Error: Missing binding /XXXXXXX/node_modules/node-sass/vendor/darwin-x64-72/binding.node

Node Sass could not find a binding for your current environment: OS X 64-bit with Node.js 12.x

【问题讨论】:

    标签: node.js angular npm node-sass


    【解决方案1】:

    升级node 搞砸了node-sass。修复:

    • 删除package-lock.json
    • 删除node_modules
    npm rebuild node-sass
    npm i
    

    【讨论】:

      猜你喜欢
      • 2022-07-19
      • 2021-04-06
      • 2017-04-15
      • 1970-01-01
      • 1970-01-01
      • 2020-05-20
      • 1970-01-01
      • 2016-09-16
      • 2019-02-14
      相关资源
      最近更新 更多