【问题标题】:Node sass could not find bindings for current environment but binding file is presentNode sass 找不到当前环境的绑定,但存在绑定文件
【发布时间】:2019-10-12 21:28:16
【问题描述】:

缺少绑定/Users/shiverma/Desktop/project/web/node_modules/node-sass/vendor/darwin-x64-51/binding.node Node Sass 找不到当前环境的绑定:OS X 64-bit with Node.js 7.x

找到以下环境的绑定: - 带有 Node.js 7.x 的 OS X 64 位 - OS X 64-bit with Unsupported runtime (72)

这通常是因为您的环境在运行npm install 后发生了变化。 运行 npm rebuild node-sass 为您当前的环境构建绑定。

我已经尝试过缓存清理、npm rebuild node-sass、npm rebuild node-sass --force 但没有任何效果。

【问题讨论】:

    标签: node.js node-sass


    【解决方案1】:

    看起来您已经从 Node 7 升级到 Node 12。Node-sass 是一个原生模块,因此需要为每个新的节点版本重新构建它。要支持 Node 12,您需要升级到 node-sass 4.12

    【讨论】:

      猜你喜欢
      • 2016-10-25
      • 2020-08-01
      • 2021-04-06
      • 2017-04-15
      • 1970-01-01
      • 2022-07-19
      • 2021-02-19
      • 2019-08-29
      • 1970-01-01
      相关资源
      最近更新 更多