For some reason, when doing a grunt build
on my VM, it simply dies off in this way:
...
Running \"concurrent:dist\" (concurrent) task
Killed
I also had the same problem today but disabling the concurrency did not do the trick for me, so I just added some swap to the VM and I was able to run it without running out of memory.
Mine was getting stuck at the imagemin
task, then after running:
npm update
It worked fine
So, I just ran into this problem as well, and I believe it has to do, with as you suspect, the VM running out of memory (are you using a $5 Digital Ocean box too?). The concurrent process attempts to run compass, copy, imagemin, svgmin and html all at the same time, which probably causes the issue, so in my build, I just comment out the concurrent rule, and inserted the individual processes in below and it seems to complete. A little slower, but thats the cost of being a cheapskate :)
grunt.registerTask('build', [
'clean:dist',
'useminPrepare',
//'concurrent:dist',
'compass',
'copy:styles',
'imagemin',
'svgmin',
'htmlmin',
'autoprefixer',
'concat',
'cssmin',
'uglify',
'modernizr',
'copy:dist',
'rev',
'usemin'
]);
It happened to me some time ago when I was running it on a low-memory vm, when the process was running out of ram.
I ran into this today and was able to diagnose the problem by running grunt serve -v --force
.
Turned out that I was missing a file I was importing in my main.scss, but this error message only appeared after adding the --force
flag.
My issue was the same as 'jbll' SASS wasn't compiling correctly due to a missing .scss file.
error app/styles/main.scss (Line 6: File to import not found or unreadable: ../bower_components/ionic/scss/ionic.scss.
In my case the file was missing because I hadn't install all of my packages first. Try the bower install
command and hopefully that will solve someones problem.