Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot download "https://github.com/sass/node- sass/releases/download/v4.5.2/darwin-x64-57_binding.node" error. What does this mean?

Tags:

meteor

I've created used Meteor to create an APP that communicates with some hardware through MQTT using Mosquitto. It was done on a Linux computer and everyone went fine. Now I've loaded the files onto OSX and I'm getting the following error with it. I've tried updates sass to the latest verson and then redoing npm install, but to no avail.

=> A patch (Meteor 1.7.0.5) for your current release is available!
   Update this project now with 'meteor update --patch'.
   Errors prevented startup:

While loading package materialize:[email protected]:
error: Command failed: /Users/random/.meteor/packages/meteor- tool/.1.7.0_4.x53m8m.ifru9++os.osx.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.x86_64/dev_bundle/bin/npm rebuild --update-binary
Cannot download "https://github.com/sass/node- sass/releases/download/v4.5.2/darwin-x64-57_binding.node":                           HTTP error 404 Not Found
 Hint: If github.com is not accessible in your location
  try setting a proxy via HTTP_PROXY, e.g. 

  export HTTP_PROXY=http://example.com:1234

 or configure npm proxy via

  npm config set proxy http://example.com:8080
like image 812
naikrima Avatar asked Nov 12 '18 06:11

naikrima


2 Answers

I have found a solution.

  1. Remove the node_modules folder

  2. Remove the package-lock.json file

  3. Clear npm cache with

npm cache clean

  1. Install the last version

npm install node-sass@latest

npm rebuild node-sass

  1. Modify package.json from your project to new version of node-sass Run

npm i

If you have another dependency that use node-sass change her version

like image 95
Kdidi Mohamed Avatar answered Sep 20 '22 23:09

Kdidi Mohamed


Remove package-lock.json then npm install, again. Worked for me.

(No need to remove node modules)

like image 40
james ace Avatar answered Sep 16 '22 23:09

james ace