Skip to content

ENOENT, no such file or dir: Aborted due to warnings. #146

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
CodisRedding opened this issue Mar 23, 2014 · 2 comments
Closed

ENOENT, no such file or dir: Aborted due to warnings. #146

CodisRedding opened this issue Mar 23, 2014 · 2 comments

Comments

@CodisRedding
Copy link

When I build my app I get the warning that aborts remaining tasks. Any suggestions? Also, I'm not sure if there's a Google group or IRC chan but if this question is a better fit for that just let me know and I'll move it there.

I normally wouldn't care too much about a warning, but the fact that it aborted due to it makes me wonder what's up.

Running "concurrent:dist" (concurrent) task
>> Warning: There are more tasks than your concurrency limit. After this limit
>> is reached no further tasks will be run until the current tasks are
>> completed. You can adjust the limit in the concurrent task options
    Warning: Running "imagemin:dist" (imagemin) task
    Warning: ENOENT, no such file or directory 'dist/public/images/yeoman.png' Use --force to continue.

Here's the full output of grunt build

❯ grunt build
Running "clean:dist" (clean) task
Cleaning .tmp...OK
Cleaning dist/lib...OK
Cleaning dist/package.json...OK
Cleaning dist/public...OK
Cleaning dist/server.js...OK
Cleaning dist/views...OK

Running "bower-install:app" (bower-install) task

Running "useminPrepare:html" (useminPrepare) task
Going through app/views/index.html to update the config
Looking for build script HTML comment blocks

Configuration is now:

  concat:
  { generated: 
   { files: 
      [ { dest: '.tmp/concat/styles/vendor.css', src: [] },
        { dest: '.tmp/concat/styles/main.css',
          src: [ '{.tmp,app}/styles/main.css' ] },
        { dest: '.tmp/concat/scripts/vendor.js',
          src: 
           [ 'app/bower_components/jquery/dist/jquery.js',
             'app/bower_components/angular/angular.js',
             'app/bower_components/angular-resource/angular-resource.js',
             'app/bower_components/angular-cookies/angular-cookies.js',
             'app/bower_components/angular-sanitize/angular-sanitize.js',
             'app/bower_components/angular-route/angular-route.js' ] },
        { dest: '.tmp/concat/scripts/scripts.js',
          src: 
           [ '{.tmp,app}/scripts/app.js',
             '{.tmp,app}/scripts/controllers/main.js',
             '{.tmp,app}/scripts/controllers/navbar.js',
             '{.tmp,app}/scripts/controllers/login.js',
             '{.tmp,app}/scripts/controllers/signup.js',
             '{.tmp,app}/scripts/controllers/settings.js',
             '{.tmp,app}/scripts/services/auth.js',
             '{.tmp,app}/scripts/services/session.js',
             '{.tmp,app}/scripts/services/user.js',
             '{.tmp,app}/scripts/directives/mongooseError.js' ] } ] } }

  uglify:
  { generated: 
   { files: 
      [ { dest: 'dist/public/scripts/vendor.js',
          src: [ '.tmp/concat/scripts/vendor.js' ] },
        { dest: 'dist/public/scripts/scripts.js',
          src: [ '.tmp/concat/scripts/scripts.js' ] } ] } }

  cssmin:
  { generated: 
   { files: 
      [ { dest: 'dist/public/styles/vendor.css',
          src: [ '.tmp/concat/styles/vendor.css' ] },
        { dest: 'dist/public/styles/main.css',
          src: [ '.tmp/concat/styles/main.css' ] } ] } }

Running "concurrent:dist" (concurrent) task
>> Warning: There are more tasks than your concurrency limit. After this limit
>> is reached no further tasks will be run until the current tasks are
>> completed. You can adjust the limit in the concurrent task options
    Warning: Running "imagemin:dist" (imagemin) task
    Warning: ENOENT, no such file or directory 'dist/public/images/yeoman.png' Use --force to continue.

    Aborted due to warnings.


    Execution Time (2014-03-23 23:49:56 UTC)
    loading tasks   4ms  ▇▇▇▇▇▇▇▇▇▇ 20%
    imagemin        1ms  ▇▇▇ 5%
    imagemin:dist  14ms  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 70%
    Total 20ms Use --force to continue.

        Aborted due to warnings.


Execution Time (2014-03-23 23:49:54 UTC)
clean:dist          31ms  ▇▇▇ 2%
bower-install:app   22ms  ▇▇ 1%
useminPrepare:html  22ms  ▇▇ 1%
concurrent:dist     1.6s  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 95%
Total 1.7s

Also here is my current dir structure to show that 'dist/public/images/yeoman.png' does exist.

@CodisRedding
Copy link
Author

I was able to fix this by setting the cache option to false. Even though the cache option has been removed from imaginmin this did the trick. Which I see in #124

imagemin: {
      options: { cache: false },
      dist: {
        files: [{
          expand: true,
          cwd: '<%= yeoman.app %>/images',
          src: '{,*/}*.{png,jpg,jpeg,gif}',
          dest: '<%= yeoman.dist %>/public/images'
        }]
      }
    },

@DaftMonk
Copy link
Member

I'll try to publish an update for this on npm tonight.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants