javascript - Getting error when running grunt-contrib-imagemin -
I am getting a permissions error - or it seems - when I try to run a tight-looking image Script I installed bitter-contrib-imagemin like this:
npm install --save-dev grunt-contrib-imagemin
installed in my node and npm My local user is my setup for Grant-Contrib-ImageMin in my GrantFile to avoid the need to use root sudo:
grunt.initConfig ({imagemin: {dynamic: { Files: [[expand: true, cwd: 'content /', src: ['** / *. {Png, jpg, gif}'], dest: '/ dist'}]}}}); Grunt.loadNpmTasks ('grunting-contribution-imagemin');
But when I run the command grunt imagemin
I get the following error:
is running "Image: Dynamic" (Imagemin) WORK WARNING: ERROR: Use -force to use EACCES, file content / 01-projects / 01-corner-in-kiss-in / 04-dana / lanningsmith_cornersdetail3.jpg. >
I have checked the permissions on these directories, and all of them write: The directories are 775 and 666 files. Owners are my users and _www (user for my server). I think the NPM has been established locally that strictness should be run as my user and therefore there should not be any problem. So I'm not sure what's going on here?
Aborted due to warnings.
Are you still seeing this issue? If so, which version of Strictly-contrib-imagemin are you using? I was getting this problem too well, but it was resolved by updating 0.9.1. View this post on their Github page:
Comments
Post a Comment