Node Sass missing binding for multiple node versions

梦想与她 提交于 2019-12-06 08:13:11

After hours of fighting build systems, I gave up and similar to Matt above, I just grabbed the binary from https://github.com/sass/node-sass/releases

(Matt's link did not go up to Node 9)

I created the directory where the run webapp (in my case Webstorm) said it was looking for the missing binary, downloaded the binary and in my case renamed darwin-x64-59_binding.node to binding.node and tried running again -- it then worked.

npm rebuild node-sass worked for VS 2017 but not for VS Code. I had to run npm cache clean before it would work in VS Code. I didn't try npm rebuild node-sass --force because I solved it before I found this page, so I don't know if that would have had the same effect or not.

So I had a similar issue with node-sass and just ended up grabbing the binaries I needed from github here.

For me I needed win32-ia32-48 and so I created that folder and copied in the binding.node file from the link above (after renaming it to remove the win32-ia32-48 prefix).

None of the install/rebuild solutions resolved the issue for me (using gulp).

Here is how I resolved it:

1) Download the missing binding file from the repository.

2) Rename the file binding.node.

3) Create directory /node-modules/vendor/darwin-x64-51/

4) Add binding.node file to /node-modules/vendor/darwin-x64-51/

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!