Deploy fails due to the incorrect node sass bindings

Hey guys, I’m having an issue with deploying new version of my website. Here is the error log:

Jan 15 12:00:42 PM   ERROR #98123  WEBPACK
Jan 15 12:00:42 PM  
Jan 15 12:00:42 PM  Generating JavaScript bundles failed
Jan 15 12:00:42 PM  
Jan 15 12:00:42 PM  Missing binding
Jan 15 12:00:42 PM  /opt/render/project/src/node_modules/node-sass/vendor/linux-x64-83/binding.node
Jan 15 12:00:42 PM  Node Sass could not find a binding for your current environment: Linux 64-bit
Jan 15 12:00:42 PM  with Node.js 14.x
Jan 15 12:00:42 PM  
Jan 15 12:00:42 PM  Found bindings for the following environments:
Jan 15 12:00:42 PM    - Linux 64-bit with Node.js 12.x
Jan 15 12:00:42 PM  
Jan 15 12:00:42 PM  This usually happens because your environment has changed since running `npm
Jan 15 12:00:42 PM  install`.
Jan 15 12:00:42 PM  Run `npm rebuild node-sass` to download the binding for your current
Jan 15 12:00:42 PM  environment.
Jan 15 12:00:42 PM  
Jan 15 12:00:42 PM  File: src/styles/index.scss

I was able to replicate it locally when I’m switched my local NodeJS version to 14.
To fix the issue this command should be ran on the server npm rebuild node-sass, how can I do this on a render server?

send private message

Hello @Hao-Ji_Wu ,
It helps, many thanks!

@Hao-Ji_Wu I am having the same exact issue, any chance you could help me out as well?

Could you try “Clean build cache & deploy”? It works for Iazio’s case.

1 Like

That worked, thank you!

1 Like