nwjs / nw-gyp

native addon build tool for node-webkit
MIT License
195 stars 46 forks source link

Cannot compile node-sass #137

Closed gpetrov closed 4 years ago

gpetrov commented 4 years ago

It is impossible to compile the node-sass for nwjs.

See also https://github.com/sass/node-sass/issues/2759

@rogerwang could you please check?

TheJaredWilcurt commented 4 years ago

@gpetrov As long as your globally installed version of Node matches the same version built in to NW.js it will work. node-sass downloads files specific to the version of Node installed globally. You can use nvm, nvm-windows or nodist, to change your Node version.

gpetrov commented 4 years ago

thanks @TheJaredWilcurt - the node version wasn't the issue. There was just a wrong compiler flag. Solution is posted in https://github.com/sass/node-sass/issues/2759#issuecomment-612691181

It is a node-sass binding.gyp problem, so this issue can be closed