I have seen quite a few such questions on SO, but none of them can solve the problem. Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js 6.x. Honestly, I do not have Node.js 6.x. From the command line, node -v gives me v5.10.1.
I am the main Angular4 Universal Asp.net template for creating visual studio 2017 right out of the box.
I tried
- npm rebuild node-sass --force
Reordering node in Web External Tools in Visual Studio
fail: Microsoft.AspNetCore.Server.Kestrel [13] Connection identifier "0HL4JSD9SSV8E": An unhandled exception was thrown by the application. System.Exception: the node module call failed: error abort due to error: Error: module assembly failed: error: missing binding D: \ Projects \ angular2 \ node_modules \ node-sass \ vendor \ win32-x64-48 \ binding .node Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js 6.x
Found bindings for the following environments:
- Windows 64-bit with Node.js 5.x
This usually happens because your environment has changed since you started npm install . Run npm rebuild node-sass --force to create a binding for your current environment. on module.exports (D: \ Projects \ angular2 \ node_modules \ node -sass \ lib \ binding.js: 15: 13) in the object. (D: \ Projects \ angular2 \ node_modules \ node-sass \ Lib \ index.js: 14:35)
Where am I wrong?
source share