构建失败:\`npm rebuild node-sass --force\`

新手上路,请多包涵

使用 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 许可协议

阅读 506
1 个回答

我做了下面的事情来解决这个问题。

 npm uninstall node-sass
npm i node-sass
npm rebuild node-sass

原文由 antimatter 发布,翻译遵循 CC BY-SA 4.0 许可协议

推荐问题
logo
Stack Overflow 翻译
子站问答
访问
宣传栏