node-sass: Exit status 3221225725 since node-sass > 4.1.1

We’re using node-sass via grunt-sass. Since node-sass got updated to 4.3 it fails on Windows (no problems with OSX and linux). With 4.1.1 we didn’t have these problems.

  • NPM version (npm -v): 3.10.8
  • Node version (node -v): 6.9.1
  • Node Process (node -p process.versions):
{ http_parser: '2.7.0',
  node: '6.9.1',
  v8: '5.1.281.84',
  uv: '1.9.1',
  zlib: '1.2.8',
  ares: '1.10.1-DEV',
  icu: '57.1',
  modules: '48',
  openssl: '1.0.2j' }
  • Node Platform (node -p process.platform): win32
  • Node architecture (node -p process.arch): x64
  • node-sass version (node -p "require('node-sass').info"):
node-sass       4.3.0   (Wrapper)       [JavaScript]
libsass         3.4.3   (Sass Compiler) [C/C++]
  • npm node-sass versions (npm ls node-sass):
`-- @coremedia/grunt-utils@1.0.0
  `-- grunt-sass@2.0.0
    `-- node-sass@4.3.0

Error message running sass via grunt via npm script:

...
Running "sass:build" (sass) task

npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "production"
npm ERR! node v6.9.1
npm ERR! npm  v3.10.8
npm ERR! code ELIFECYCLE
npm ERR! @coremedia/perfectchef-theme@1.0.0 production: `grunt production`
npm ERR! Exit status 3221225725
...

Running grunt sass exits without any exit code or error message.

Our workaround is to go back to grunt-sass 1.2.1 with node-sass 3.13.1

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 21 (11 by maintainers)

Most upvoted comments

Hi @xzyfer, I’m sorry to bother you, but did you check my example project? Please try to reproduce it. I asked my colleagues to test it and all Windows user got the same error code (it doesn’t matter, which node version they used.) but it works with macOS. This error occurs since 4.2.0. v4.1.1 was fine. I added a branch for that too: https://github.com/mriehema/node-sass-issue/tree/old-node-sass-version

EDIT: Some more informations: It looks like only win32-x64 is affected. I run it in appveyor, which uses win32-ia32 and it works. And even on Ubuntu Shell on Windows with linux-x64 works.

Conclusion: LibSass has been bumped from 3.4.0 to 3.4.3 in v4.2.0. Something between these versions is causing this exit status for Windows x64. Should I open an issue in libsass for that?

Info: Exit status 3221225725 = error code 0xc00000fd = stack overflow, See https://support.microsoft.com/en-us/help/315937/how-to-trap-stack-overflow-in-a-visual-c-application