Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

cannot download https://github.com/sass/node-sass/releases/download/v3.13.1/darwin-x64-57_binding.node"

Tags:

npm

node-gyp

I'm having difficulty installing some npm packages on my system. But not all.

I am working with WordPress template files, all of which use SASS for CSS, and all of which use their own set of packages to install. In some cases the installation has gone just fine. In others, not so much. The general pattern of the errors is consistent, but I'm not certain that the actual errors are.

In any event, this is the output from my attempt at just doing npm install. Can anyone pinpoint where things are going wrong, for me? I thought perhaps this was a problem with really old packages - and it still could be - but even relatively new themes suffer from the same problem.

Thanks in advance.

My error log

like image 615
tjb74 Avatar asked Dec 06 '22 10:12

tjb74


2 Answers

the package node-sass is loading some files form Github at the end of npm install. Seems like at least one of these files darwin-x64-57_binding.node is no longer available for v3.13.1.

Can you upgrade to the current version [email protected]? This seems to have the darwin-x64-57_binding.node available.

Or you could see if you can fix the issue with [email protected]. But there are lot's of warnings about outdated feature(s) in the log, so this could be tricky by now.

Does this help?

like image 146
Konstantin A. Magg Avatar answered Dec 08 '22 00:12

Konstantin A. Magg


I got a similar exception when switching computer and ran npm install. I simply removed package-lock.json and then it worked.

like image 20
Ogglas Avatar answered Dec 07 '22 23:12

Ogglas