libsass bindings not found when using node-sass in nodejs

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

    I have solved this to create the right directory with the specified binding.node file. You can download the bindings from github

    https://github.com/sass/node-sass-binaries

    Look in the error message the path where it tries to find the binding. In my case:

    C:\Users\Martijn\Documents\node_modules\gulp-sass\node_modules\node-sass\vendor\win32-x64-46

    So I create this map win32-x64-46 and copy the binding from github in.

提交回复
热议问题