Angular-cli: ng build -> segmentation fault

Created on 12 Nov 2016  路  5Comments  路  Source: angular/angular-cli

Please provide us with the following information:

OS?

Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)

Linux Debian 7.11

Versions.

Please run ng --version. If there's nothing outputted, please run in a Terminal: node --version

and paste the result here:
angular-cli: 1.0.0-beta.19-3
node: 6.9.1
os: linux x64

Repro steps.

Was this an app that wasn't created using the CLI? What change did you do on your code? etc.

I get the problem when including theming from material angular 2 in my angular-cli. only when i @import something from theming. And this only happens on my linux machine (works on Mac and Windows)

The log given by the failure.

Normally this include a stack trace and some more information.

69% building modules 1329/1331 modules 2 active ...bootstrap/stylesheets/_bootstrap.scss
Speicherzugriffsfehler (Speicherabzug geschrieben)

and sometimes
Segmentation fault (core dumped)

Mention any other details that might be useful.

Only happens on linux.


Thanks! We'll be in touch soon.

bufix

Most helpful comment

@filipesilva thats exactly what I referenced to. I had the same problem, but the workaround which is mentioned in this issue works very well. I wouldn't recommend pinning an older version (3.5.3, like mentioned in the node-sass issue) of node-sass either, since it produces a bunch of weird error logs and what not, though everything worked eventually. At least for me... (It also messed up my CI's by the way)

All 5 comments

Try this:

In your project root:

npm install
cd node_modules/node-sass
node scripts/build -f

Source: know bug in node-sass for debian

If that doesn't work, pin [email protected]

Seems to be https://github.com/sass/node-sass/issues/1738, will have to wait for a solution there.

@filipesilva thats exactly what I referenced to. I had the same problem, but the workaround which is mentioned in this issue works very well. I wouldn't recommend pinning an older version (3.5.3, like mentioned in the node-sass issue) of node-sass either, since it produces a bunch of weird error logs and what not, though everything worked eventually. At least for me... (It also messed up my CI's by the way)

@christiandreher Great it's working like a charm

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

_This action has been performed automatically by a bot._

Was this page helpful?
0 / 5 - 0 ratings