node-sass: HTTP error 404 downloading node-sass 4.5.0 binding binary for FreeBSD 11

When I run npm install node-sass on my Freebsd machine I get:

> node-sass@4.5.0 install /usr/home/****/node_modules/node-sass
> node scripts/install.js

Downloading binary from https://github.com/sass/node-sass/releases/download/v4.5.0/freebsd-x64-51_binding.node
Cannot download "https://github.com/sass/node-sass/releases/download/v4.5.0/freebsd-x64-51_binding.node": 

HTTP error 404 Not Found

The file freebsd-x64-51_binding.node does not exist. Where can one find this file?

Regards, Daniele.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 7
  • Comments: 66 (27 by maintainers)

Most upvoted comments

Hi @emjaksa

you can try with:

npm install node-sass --nodedir=/usr/local

Plesse tell me if you also encouter issues with libuv.

Regards, Daniele

The problem may be related to an Amazon AWS S3 Outage. https://status.aws.amazon.com/

We’re continuing to work to remediate the availability issues for Amazon S3 in US-EAST-1. AWS services and customer applications depending on S3 will continue to experience high error rates as we are actively working to remediate the errors in Amazon S3.

@franktopel you’re more than welcome to contribute the builds.

Just for anyone who wants an immediately workable solution, the following worked for me:

pkg install libsass
LIBSASS_EXT=auto npm install node-sass@4.3.0 --nodedir=/usr/local

This uses the system install of libsass which is currently at 3.4.4 and drops back to an old version of node-sass which will successfully link against that version of libsass. The --nodedir argument is required to use the system node headers rather than trying to download a fresh copy.

npm install should fallback to building the binary locally. Assuming you have build chain installed i.e. python2, gcc - it should compile automatically.

Everyone here in the project has full freedom to do things or not to do things. Do you have a contract with node-sass maintainers that spells out the conditions of the commitment, in particular the agreed service level?

I’m also looking for a FreeBSD version.