Webpack Binding Issue - node.js

Hey guys for some reason I keep getting this error when building with sass-loader
Module build failed: Error: Missing binding C:\TFS_Local\DPOnGit\node_modules\node-sass\vendor\win32-ia32-11\binding.node
Node Sass could not find a binding for your current environment: Windows 32-bit with Node 0.10.x
Found bindings for the following environments:
- Windows 64-bit with Node.js 5.x
This usually happens because your environment has changed since running npm install.
Run npm rebuild node-sass to build the binding for your current environment.
Very frustrating as this config has worked on the same machine before without issues.

I had the same problem, rebuilding as suggested by the error message didn't work for me, but running
npm install --save sass-loader
did.

Related

error in npm start vs code , react project

H!
i tryin to run my React Project using npm start command in terminal :
npm v7.4.3
node v15.7.0
error in terminal
./src/index.scss (./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-5-1!./node_modules/postcss-loader/src??postcss!./node_modules/resolve-url-loader??ref--6-oneOf-5-3!./node_modules/sass-loader/dist/cjs.js??ref--6-oneOf-5-4!./src/index.scss)
Error: Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (88)
For more information on which environments are supported please see:
https://github.com/sass/node-sass/releases/tag/v4.14.1
and face this error in localhost:8888
Failed to compile
./src/index.scss (./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-5-1!./node_modules/postcss-loader/src??postcss!./node_modules/resolve-url-loader??ref--6-oneOf-5-3!./node_modules/sass-loader/dist/cjs.js??ref--6-oneOf-5-4!./src/index.scss)
Error: Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (88)
For more information on which environments are supported please see:
https://github.com/sass/node-sass/releases/tag/v4.14.1
i trying tso solve problem with this commands
npm rebuild node-sass
and other way was reinstall node-sass
im trying to delete node_modules and run npm install
but seem doesnt work for me.
any answers ?
Downgrade node.js to a stable version (LTS) like 14.15.4
Install the compatible node-sass version via npm install node-sass#5.0.0; you can find the list here or use the GitHub releases page, or even install gulp-sass with npm i gulp-sass`.

Angular - Is node-sass supported in the node version 11?

I have this new error which is failing the compilation of the code.
Is it the problem with the node version?
Is node-sass supported in all node versions?
If not how to fix this?
Module build failed: Error: Cannot find module 'node-sass'
Try running npm rebuild node-sass and see if it fixes your problem (you may have to run with --force)
You should run this every time you change your environment (ie: node version).

I got the following error in node version 8+

Previous node version is 7.9.0. The project was running well.
When I upgraded it to 8.9.4, I got the following errors.
ERROR in ./node_modules/css-loader?{"sourceMap":false,"import":false}!./node_modules/postcss-loader/lib?{"ident":"postcss","sourceMap":false}!./node_modules/sass-loader/lib/loader.js?{"sourceMap":false,"precision":8,"includePaths":[]}!./src/sass/styles.scss
Module build failed: Error: Missing binding F:\LogicSoft-SRL\angular-frontdesk\node_modules\node-sass\vendor\win32-x64-57\binding.node
Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js 8.x
Found bindings for the following environments:
- Windows 64-bit with Node.js 7.x
How can I fix this error in the current version(8.9.4)?
From the error message, it looks like you have to rebuild node-sass for your node version. You can do this by running the command from this answer.
npm rebuild node-sass
You can find more info on the rebuild command here.

"Node Sass could not find a binding for your current environment: OS X 64-bit with Node.js 4.x" error BUT my current environment is 6.11

This always happen to me when I change my node version globally and is not the same as the project version installed by Maven.
Things normally work ok but node-sass always gives error. I recently updated my node version from 4.4.4 globally to stable version with nvm.
Our project setting also changed to be 6.11.3
I deleted project node-modules many times. I cleaned npm cache many times both in global and in project local.
But Grunt watch does not work because I get this
Error: Missing binding /Users/Tekin/bitbucket/ark/code/emport-web/node_modules/node-sass/vendor/darwin-x64-46/binding.node
Node Sass could not find a binding for your current environment: OS X 64-bit with Node.js 4.x
Found bindings for the following environments:
- OS X 64-bit with Node.js 6.x
This is driving me insane. What is happening? I am not using 4.x anymore I rebuilt npm node-sass also even forced it.
May be there is an order of things that someone can explain.
And this is what I get when I do npm install or Jetty clean run to rebuild the project.
node-sass#4.5.3 install /Users/Tekin/bitbucket/ark/code/emport-web/node_modules/node-sass
node scripts/install.js
node-sass build Binary found at /Users/Tekin/bitbucket/ark/code/emport->web/node_modules/node-sass/vendor/darwin-x64-48/binding.node
node-sass#4.5.3 postinstall /Users/Tekin/bitbucket/ark/code/emport-web/node_modules/node-sass node scripts/build.js
Binary found at /Users/Tekin/bitbucket/ark/code/emport-web/node_modules/node-sass/vendor/darwin-x64-48/binding.node
Testing binary
Binary is fine
node-sass#4.5.3 /Users/Tekin/bitbucket/ark/code/emport-web/node_modules/node-sass

Laravel with Node.js: "Node Sass could not find a binding for your current environment"

So I did not have installed Node before, just standard Laravel. Today I installed Node.js 8 and now one of my older projects tells me the following in the console:
app.js:66591 Uncaught Error: Module build failed: ModuleBuildError: Module build failed: Error: Missing binding /node_modules/node-sass/vendor/darwin-x64-57/binding.node
Node Sass could not find a binding for your current environment: OS X 64-bit with Node.js 8.x
Found bindings for the following environments:
- OS X 64-bit with Node.js 6.x
This usually happens because your environment has changed since running `npm install`.
Run `npm rebuild node-sass --force` to build the binding for your current environment.
Unfortunately, 'npm rebuild node-sass --force' doesn't change anything. I tried to install either Node 6 or 8, but I cannot get rid of the error (site is still working anyway, is Laravel using Node only for npm?).
So what's the solution for this?

Resources