libsass bindings not found when using node-sass in nodejs

后端 未结 12 1380
名媛妹妹
名媛妹妹 2020-12-02 05:03

I want to use the node-sass module in my node.js v0.12 application to benefit from the performance of libsass.
I executed np

12条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-02 05:21

    You’ve probably tried to reinstall node-sass while using

    npm install node-sass
    

    or

    npm uninstall node-sass
    npm install node-sass
    

    But node-sass is a C version of Sass. You have to use npm rebuild:

    npm rebuild node-sass
    

提交回复
热议问题