Code Monkey home page Code Monkey logo

Comments (9)

shama avatar shama commented on June 30, 2024

EACCES means node doesn't have permission to read that directory. Probably just need to tighten up your file matching rules to only files you have permission to or run grunt as a user with adequate permissions.

from grunt-contrib-watch.

alejandroiglesias avatar alejandroiglesias commented on June 30, 2024

But /var/agentx is not a file I manually specified in the Gruntfile nor is it /tmp/launchd-4643.AHyaSD. Where does those come from?

from grunt-contrib-watch.

shama avatar shama commented on June 30, 2024

Could you post your gruntfile?

from grunt-contrib-watch.

alejandroiglesias avatar alejandroiglesias commented on June 30, 2024
/*global module:false*/
module.exports = function(grunt) {

  // Project configuration.
  grunt.initConfig({
    // Metadata.
    pkg: grunt.file.readJSON('package.json'),
    banner: '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - ' +
      '<%= grunt.template.today("yyyy-mm-dd") %>\n' +
      '<%= pkg.homepage ? "* " + pkg.homepage + "\\n" : "" %>' +
      '* Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>;' +
      ' Licensed <%= _.pluck(pkg.licenses, "type").join(", ") %> */\n',
    // Task configuration.
    concat: {
      options: {
        banner: '<%= banner %>',
        stripBanners: true
      },
      dist: {
        src: ['js/src/**/*.js'],
        dest: 'js/build/<%= pkg.name %>.js'
      }
    },
    uglify: {
      options: {
        banner: '<%= banner %>'
      },
      dist: {
        src: '<%= concat.dist.dest %>',
        dest: 'js/build/<%= pkg.name %>.min.js'
      }
    },
    jshint: {
      options: {
        curly: true,
        eqeqeq: true,
        immed: true,
        latedef: true,
        newcap: true,
        noarg: true,
        sub: true,
        undef: true,
        unused: true,
        boss: true,
        eqnull: true,
        browser: true,
        globals: {}
      },
      gruntfile: {
        src: 'Gruntfile.js'
      },
      lib_test: {
        src: ['lib/**/*.js', 'test/**/*.js']
      }
    },
    // qunit: {
    //   files: ['test/**/*.html']
    // },
    watch: {
      gruntfile: {
        files: '<%= jshint.gruntfile.src %>',
        tasks: ['jshint:gruntfile']
      },
      lib_test: {
        files: '<%= jshint.lib_test.src %>',
        tasks: ['jshint:lib_test'/*, 'qunit'*/]
      },
      styles: {
        files: '<%= compass.compile.sassDir %>/**/*.scss',
        tasks: ['compass:dev']
      }
    },
    compass: {
      compile: {
        options: {
          sassDir: 'scss',
          cssDir: 'styles',
          specify: ['scss/landing.scss', 'scss/login.scss', 'scss/app.scss'],
          imagesDir: 'images',
          environment: 'production',
          outputStyle: 'compressed',
          relativeAssets: true,
          force: true
        }
      },
      dev: {
        options: {
          sassDir: '<%= compass.compile.sassDir %>',
          cssDir: '<%= compass.compile.cssDir %>',
          specify: '<%= compass.compile.specify %>',
          imagesDir: '<%= compass.compile.imagesDir %>',
          environment: 'development',
          outputStyle: 'compact',
          relativeAssets: true,
          debugInfo: true,
          force: true
        }
      }
    }
  });

  // These plugins provide necessary tasks.
  grunt.loadNpmTasks('grunt-contrib-concat');
  grunt.loadNpmTasks('grunt-contrib-uglify');
  // grunt.loadNpmTasks('grunt-contrib-nodeunit');
  grunt.loadNpmTasks('grunt-contrib-jshint');
  grunt.loadNpmTasks('grunt-contrib-watch');
  grunt.loadNpmTasks('grunt-contrib-compass');

  // Default task.
  grunt.registerTask('default', ['jshint', /*'qunit',*/ 'concat', 'uglify', 'compass:compile']);

};

from grunt-contrib-watch.

shama avatar shama commented on June 30, 2024

Hmm that is strange. Are there any symlink'd directories? It should be bothering with /var/ or /tmp/.

from grunt-contrib-watch.

alejandroiglesias avatar alejandroiglesias commented on June 30, 2024

Nope, running ls -lR /path/to/folder | grep ^l didn't revealed any.

from grunt-contrib-watch.

alejandroiglesias avatar alejandroiglesias commented on June 30, 2024

Ok, just found it commenting around things.

Line
files: '<%= compass.compile.sassDir %>/**/*.scss',
should be:
files: '<%= compass.compile.options.sassDir %>/**/*.scss',

My mistake! But the error message is still strange...
Thanks a lot for your help!

from grunt-contrib-watch.

shama avatar shama commented on June 30, 2024

Very strange but glad you found the solution!

from grunt-contrib-watch.

4lador avatar 4lador commented on June 30, 2024

Check if you're working with a linux filesystem where you can arrange permissions that way (not NTFS for example)

from grunt-contrib-watch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.