I am having issues building an app because node-sass keeps failing with the error.
ERROR in Missing binding /Users/warren/Sites/random-docs/my-cms/node_modules/node-sass/vendor/darwin-x64-11/binding.node
Node Sass could not find a binding for your current environment: OS X 64-bit with Node 0.10.x
I have tried running
npm rebuild node-sass
which says
Binary is fine; exiting.
When running node -v
I get v6.2.2
Which is different to what the sass error says "Node 0.10.x". I can't figure out why it is getting the wrong version. I have also tried removing the node_modules folder and running npm update or npm install, both of which did not resolve the issue. Any ideas?
Node. js bindings are series of methods that can be used in Node. js code which are in reality just running C++ code behind the scenes.
Node sass is a library that allows binding for Node. js to LibSass, the C version of Sass's stylesheet preprocessor. It compiles . scss files to CSS with speed and automatically through connected middleware. SASS (Syntactically Awesome Style Sheets) is a comprehensive version of CSS.
To check the version, run the command: sass –version. The latest version is 1.49.
This command runs the npm build command on the matched folders. This is useful when you install a new version of node, and must recompile all your C++ addons with the new binary. It is also useful when installing with --ignore-scripts and --no-bin-links , to explicitly choose which packages to build and/or link bins.
I had the same problem
There is an error in your gulpfile:
Error: Missing binding E:\allapp\badshaindiancuisine\node_module\node-sass\vendor\win32-x64-46\binding.node
Node Sass could not find a binding for your current environment:Windows 64-bit with Node.js 4.xFound bindings for the following environment:
- OS X 64-bit with Node.js 4.x
How to solve my problem
By going into project folder and then execute:
npm rebuild node-sass
For those that are using Visual Studio:
Currently working for VS 2015, 2017, 2019, 2022[preview 4] (via below and/or replies from this post)
Task Runner Explorer can't load tasks
For VS 2015
For VS 2017(.3) and VS 2019
In VS 2017 & 2019, you also need to put $(PATH) above $(VSINSTALLERDIR)\Web\External
Deleting node_modules
and running npm install
and then npm rebuild node-sass
did nothing.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With