使用 n
切换节点版本。我跑了 yarn
, npm rebuild node-sass --force
很多很多次。仍然失败。收到此错误:
Node Sass could not find a binding for your current environment
This usually happens because your environment has changed since running `npm install`.
Run `npm rebuild node-sass --force` to build the binding for your current environment.
任何人都知道如何解决?
另外..运行此命令时..
npm rebuild node-sass --force
我得到..
npm WARN using --force I sure hope you know what you are doing.
似乎没有做任何事情..
原文由 GN. 发布,翻译遵循 CC BY-SA 4.0 许可协议
我做了下面的事情来解决这个问题。