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

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

Open
hridoyworkac opened this issue Feb 27, 2024 · 2 comments
Open

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

hridoyworkac opened this issue Feb 27, 2024 · 2 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

  • npm node-sass versions (npm ls node-sass):
    ├── node-sass@8.0.0
    └─┬ react-scripts@5.0.1
    └─┬ sass-loader@12.6.0
    └── node-sass@8.0.0 deduped invalid: "^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0" from node_modules/sass-loader
@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants