Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Cannot install node-sass <6.0.0 with sass-loader #3104

Closed
leonardcser opened this issue May 10, 2021 · 2 comments
Closed

Cannot install node-sass <6.0.0 with sass-loader #3104

leonardcser opened this issue May 10, 2021 · 2 comments

Comments

@leonardcser
Copy link

leonardcser commented May 10, 2021

  • NPM version (npm -v):
    7.10.0
  • Node version (node -v):
    v16.0.0
  • Node Process (node -p process.versions):
    {
    node: '16.0.0',
    v8: '9.0.257.17-node.10',
    uv: '1.41.0',
    zlib: '1.2.11',
    brotli: '1.0.9',
    ares: '1.17.1',
    modules: '93',
    nghttp2: '1.43.0',
    napi: '8',
    llhttp: '6.0.0',
    openssl: '1.1.1k',
    cldr: '39.0',
    icu: '69.1',
    tz: '2021a',
    unicode: '13.0'
    }
  • Node Platform (node -p process.platform):
    darwin
  • Node architecture (node -p process.arch):
    x64
  • node-sass version (node -p "require('node-sass').info"):
    node-sass 6.0.0 (Wrapper) [JavaScript]
    libsass 3.5.5 (Sass Compiler) [C/C++]
  • npm node-sass versions (npm ls node-sass):
    frontend@0.1.0 /Users/leo/dev/Python/project/frontend
    ├── node-sass@6.0.0
    └─┬ react-scripts@4.0.3
    └─┬ sass-loader@10.1.1
    └── node-sass@6.0.0 deduped invalid

npm ERR! code ELSPROBLEMS
npm ERR! invalid: node-sass@6.0.0 /Users/leo/dev/Python/project/frontend/node_modules/node-sass

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/leo/.npm/_logs/2021-05-10T09_05_18_799Z-debug.log

  • node-sass@6.0.0 not yet comptible with sass-loader
  • node-sass@5.0.0 build error at install (npm install node-sass@5.0.0):
    npm ERR! 1 error generated.
    npm ERR! make: *** [Release/obj.target/binding/src/binding.o] Error 1
    npm ERR! gyp ERR! build error
    npm ERR! gyp ERR! stack Error: make failed with exit code: 2
    npm ERR! gyp ERR! stack at ChildProcess.onExit (/Users/leo/dev/Python/project/frontend/node_modules/node-gyp/lib/build.js:194:23)
    npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:365:28)
    npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
    npm ERR! gyp ERR! System Darwin 20.3.0
    npm ERR! gyp ERR! command "/usr/local/Cellar/node/16.0.0_1/bin/node" "/Users/leo/dev/Python/project/frontend/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
    npm ERR! gyp ERR! cwd /Users/leo/dev/Python/project/frontend/node_modules/node-sass
    npm ERR! gyp ERR! node -v v16.0.0
    npm ERR! gyp ERR! node-gyp -v v7.1.2
    npm ERR! gyp ERR! not ok
    npm ERR! Build failed with error code: 1

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/leo/.npm/_logs/2021-05-09T20_10_49_257Z-debug.log

@leonardcser
Copy link
Author

Fixed by using node version 15.10.0.

@nschonni
Copy link
Contributor

Related to sass-loader which has cut a new tag with node-sass 6 support https://github.com/webpack-contrib/sass-loader/releases/tag/v11.1.0

@nschonni nschonni changed the title Cannot install node-sass <6.0.0 Cannot install node-sass <6.0.0 with sass-loader May 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants