sass / node-sass

:rainbow: Node.js bindings to libsass
https://npmjs.org/package/node-sass
MIT License
8.5k stars 1.33k forks source link

node-sass@8.0.0 install "Binary has a problem" #3406

Closed hridoyworkac closed 1 month ago

hridoyworkac commented 4 months ago

C:\Windows\system32\cmd.exe /d /s /c node scripts/build.js npm ERR! Binary found at C:....\node_modules\node-sass\vendor\win32-x64-115\binding.node npm ERR! Testing binary npm ERR! Binary has a problem: Error: \?\C:....\node_modules\node-sass\vendor\win32-x64-115\binding.node is not a valid Win32 application. npm ERR! \?\C:....\node_modules\node-sass\vendor\win32-x64-115\binding.node npm ERR! at Module._extensions..node (node:internal/modules/cjs/loader:1473:18) npm ERR! at Module.load (node:internal/modules/cjs/loader:1207:32) npm ERR! at Module._load (node:internal/modules/cjs/loader:1023:12) npm ERR! at Module.require (node:internal/modules/cjs/loader:1235:19) npm ERR! at require (node:internal/modules/helpers:176:18) npm ERR! at module.exports (C:....\node_modules\node-sass\lib\binding.js:19:10) npm ERR! at Object. (C:....\node_modules\node-sass\lib\index.js:13:35) npm ERR! at Module._compile (node:internal/modules/cjs/loader:1376:14) npm ERR! at Module._extensions..js (node:internal/modules/cjs/loader:1435:10) npm ERR! at Module.load (node:internal/modules/cjs/loader:1207:32) { npm ERR! code: 'ERR_DLOPEN_FAILED' npm ERR! }

Error: Cannot find module 'true-case-path' Require stack:

Node.js v20.11.1

airowe commented 3 months ago

@saper Seeing this issue as well all of a sudden. Did you find a resolution?

nevez commented 2 months ago

I am also seeing this, cant find a way to solve it apart from building under linux.

saTaniguchi commented 1 month ago

same here. Has someone resolved this error?

Bizarrus commented 1 month ago

Same problem here.

I hate some depencies with native install depencies.

ecofi commented 1 month ago

Same problem here on a linux machine. Very critical as rebuild install fails. Moving now to a different module.

saper commented 1 month ago

Moving now to a different module.

Please do!

saper commented 1 month ago

https://github.com/sass/node-sass/releases/tag/v8.0.0 clearly says that node 20 is not supported. Use 9.0.0

ecofi commented 1 month ago

https://github.com/sass/node-sass/releases/tag/v8.0.0 clearly says that node 20 is not supported. Use 9.0.0

I'm running node version 22.0

npm ERR! Binary found at /XXXX/node_modules/node-sass/vendor/linux-x64-127/binding.node npm ERR! Testing binary npm ERR! Binary has a problem: Error: /XXXX/node_modules/node-sass/vendor/linux-x64-127/binding.node: file too short npm ERR! at Module._extensions..node (node:internal/modules/cjs/loader:1572:18)

nevez commented 1 month ago

In my case I couldn't downgrade node, but I could substitute "node-sass" for "sass", and it worked.

Stephen

El mié, 22 may 2024 a la(s) 10:19 a.m., ecofi @.***) escribió:

https://github.com/sass/node-sass/releases/tag/v8.0.0 clearly says that node 20 is not supported. Use 9.0.0

I'm running node version 22.0

npm ERR! Binary found at /XXXX/node_modules/node-sass/vendor/linux-x64-127/binding.node npm ERR! Testing binary npm ERR! Binary has a problem: Error: /XXXX/node_modules/node-sass/vendor/linux-x64-127/binding.node: file too short npm ERR! at Module._extensions..node (node:internal/modules/cjs/loader:1572:18)

— Reply to this email directly, view it on GitHub https://github.com/sass/node-sass/issues/3406#issuecomment-2124163393, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACAJDJPIYLILRC6OG7FV6BTZDRIKPAVCNFSM6AAAAABD5AER7CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRUGE3DGMZZGM . You are receiving this because you commented.Message ID: @.***>

saper commented 1 month ago

I'm running node version 22.0

PLEASE check the list of the node versions supported. Since we are using binary components, we only support versions listed in the release.