Comments (9)
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.
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.
Could you post your gruntfile?
from grunt-contrib-watch.
/*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.
Hmm that is strange. Are there any symlink'd directories? It should be bothering with /var/
or /tmp/
.
from grunt-contrib-watch.
Nope, running ls -lR /path/to/folder | grep ^l
didn't revealed any.
from grunt-contrib-watch.
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.
Very strange but glad you found the solution!
from grunt-contrib-watch.
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)
- suggestion: option to hide "File ... changed" from console ouput HOT 1
- Error: Cannot find module 'http-parser-js' HOT 1
- Fatal error: Cannot read property 'files' of undefined HOT 4
- Would it be possible to stop the watcher while something is pulled from the repository via git? HOT 1
- Proccess many files - grunt watch HOT 2
- Root Folder Changes Triggering Tasks HOT 1
- Opening any watched file on OSX High Sierra triggers watch task. HOT 7
- Security warning [email protected]: Update tiny-lr HOT 2
- Security vulnerability in [email protected] HOT 3
- Task runner 'uglify' giving error on async function statement
- grunt watch does not detect changes on scss partial files (files with '_' prefix) HOT 1
- Found: error@^7.0.0
- Since grunt-sass v3 grunt-contrib-watch fails to recover after grunt-sass encounters an error
- Fatal error: Cannot read property 'files' of undefined
- "spawn: false" doesn't work
- Grunt watch doesn't work HOT 1
- Detects file deleted due to case mismatch
- npm audit issues with gaze and lodash
- Deprecated
- tiny-lr version bump to 2.0.0 due to CVE-2020-15133 in dependency faye-websocket
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grunt-contrib-watch.