Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[email protected] install "Binary has a problem" #3406

Closed
hridoyworkac opened this issue Feb 27, 2024 · 10 comments
Closed

[email protected] install "Binary has a problem" #3406

hridoyworkac opened this issue Feb 27, 2024 · 10 comments

Comments

@hridoyworkac
Copy link

hridoyworkac commented Feb 27, 2024

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! }

  • NPM version (npm -v): 10.4.0
  • Node version (node -v):v20.11.1
  • Node Process (node -p process.versions):{
    node: '20.11.1',
    acorn: '8.11.2',
    ada: '2.7.4',
    ares: '1.20.1',
    base64: '0.5.1',
    brotli: '1.0.9',
    cjs_module_lexer: '1.2.2',
    cldr: '43.1',
    icu: '73.2',
    llhttp: '8.1.1',
    modules: '115',
    napi: '9',
    nghttp2: '1.58.0',
    nghttp3: '0.7.0',
    ngtcp2: '0.8.1',
    openssl: '3.0.13+quic',
    simdutf: '4.0.4',
    tz: '2023c',
    undici: '5.28.3',
    unicode: '15.0',
    uv: '1.46.0',
    uvwasi: '0.0.19',
    v8: '11.3.244.8-node.17',
    zlib: '1.2.13.1-motley-5daffc7'
    }
  • Node Platform (node -p process.platform): win32
  • Node architecture (node -p process.arch):x64
  • node-sass version (node -p "require('node-sass').info"):
    node:internal/modules/cjs/loader:1147
    throw err;
    ^

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

  • C:....\node_modules\node-sass\lib\extensions.js
  • C:....\node_modules\node-sass\lib\index.js
  • C:....[eval]
    at Module._resolveFilename (node:internal/modules/cjs/loader:1144:15)
    at Module._load (node:internal/modules/cjs/loader:985:27)
    at Module.require (node:internal/modules/cjs/loader:1235:19)
    at require (node:internal/modules/helpers:176:18)
    at Object. (C:....\node_modules\node-sass\lib\extensions.js:8:22)
    at Module._compile (node:internal/modules/cjs/loader:1376:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
    at Module.load (node:internal/modules/cjs/loader:1207:32)
    at Module._load (node:internal/modules/cjs/loader:1023:12)
    at Module.require (node:internal/modules/cjs/loader:1235:19) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    'C:\..\..\node_modules\node-sass\lib\extensions.js',
    'C:\..\..\node_modules\node-sass\lib\index.js',
    'C:\..\..\..\[eval]'
    ]
    }

Node.js v20.11.1

@airowe
Copy link

airowe commented Mar 21, 2024

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

@nevez
Copy link

nevez commented Apr 29, 2024

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

@saTaniguchi
Copy link

same here.
Has someone resolved this error?

@Bizarrus
Copy link

Same problem here.

I hate some depencies with native install depencies.

@ecofi
Copy link

ecofi commented May 22, 2024

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

@saper
Copy link
Member

saper commented May 22, 2024

Moving now to a different module.

Please do!

@saper
Copy link
Member

saper commented May 22, 2024

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

@ecofi
Copy link

ecofi commented May 22, 2024

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
Copy link

nevez commented May 22, 2024 via email

@saper
Copy link
Member

saper commented May 22, 2024

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.

@sass sass locked as resolved and limited conversation to collaborators May 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants