【发布时间】:2022-07-19 11:43:09
【问题描述】:
当我开始将 CSS 文件扩展名更改为 scss 并安装 node-sass 模块时,我遇到了以下问题:
Error: Missing binding /home/shayan/workspace/react-ts-seed/node_modules/node-sass/vendor/linux-x64-72/binding.node
Node Sass could not find a binding for your current environment: Linux 64-bit with Node.js 12.x
Found bindings for the following environments:
- Unknown environment (.DS_Store)
- OS X 64-bit with Node.js 17.x
- Linux 64-bit with Node.js 14.x
This usually happens because your environment has changed since running `npm install`.
Run `npm rebuild node-sass` to download the binding for your current environment.
在删除 node_module 并再次安装整个模块以及执行 npm rebuild node-sass 之后什么都没有发生。
我的 node-sass 版本是 node-sass@7.0.1
【问题讨论】:
标签: css reactjs typescript sass