libsass bindings not found when using node-sass in nodejs

后端 未结 12 1348
名媛妹妹
名媛妹妹 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:32

    For me, this issue was caused in my build system (Travis CI) by doing something kind of dumb in my .travis.yml file. In effect, I was calling npm install before nvm use 0.12, and this was causing node-sass to be built for 0.10 instead of 0.12. My solution was simply moving nvm use out of the .travis.yml file’s before_script section to before the npm install command, which was in the before_install section.

提交回复
热议问题