Grunt build - Running “concurrent:dist” (concurrent) task Killed

后端 未结 6 1564
北荒
北荒 2021-02-13 19:11

For some reason, when doing a grunt build on my VM, it simply dies off in this way:

...
Running \"concurrent:dist\" (concurrent) task
Killed
         


        
相关标签:
6条回答
  • 2021-02-13 19:42

    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.

    0 讨论(0)
  • 2021-02-13 19:43

    Mine was getting stuck at the imagemin task, then after running:

    npm update
    

    It worked fine

    0 讨论(0)
  • 2021-02-13 19:45

    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'
    ]);
    
    0 讨论(0)
  • 2021-02-13 19:49

    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.

    0 讨论(0)
  • 2021-02-13 19:59

    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.

    0 讨论(0)
  • 2021-02-13 20:00

    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.

    0 讨论(0)
提交回复
热议问题