I'm trying to run a Grunt Compass task and it keeps failing with:
Errno::EACCES on line ["250"] of
/opt/rubies/ruby-2.1.2/lib/ruby/2.1.0/fileutils.rb: Permission denied
@ dir_s_mkdir - /stylesheets
My task is:
compass: {
dev: {
options: {
require: ['susy', 'breakpoint'],
sassDir: '<%= paths.srcAssets %>/stylesheets',
cssDir: '<%= paths.build %>/stylesheets',
generatedImagesDir: '<%= paths.build %>/images',
imagesDir: '<%= paths.srcAssets %>/images',
javascriptsDir: '<%= paths.srcAssets %>/javascripts',
fontsDir: '<%= paths.srcAssets %>/fonts',
// importPath: ['<%= paths.vendor %>/components'],
httpImagesPath: '/assets/images',
httpGeneratedImagesPath: '/assets/images',
httpFontsPath: '/assets/fonts',
sourcemap: true,
relativeAssets: false,
noLineComments: true,
outputStyle: 'compressed',
raw: 'preferred_syntax = :sass\n',
environment: 'development',
bundleExec: true,
app: 'stand_alone',
debugInfo: true,
quiet: false,
trace: true
}
}
},
I'm assuming it's failing as it doesn't have the correct permissions to create the 'stylesheets' directory.
This confuses me in two ways:
I have another grunt task that successfully creates an 'images' directory in the same location that Compass is trying to place the 'stylesheets' one.
I am running this in a Vagrant virtual machine so unsure what the permissions on the parent folder should be.
Any ideas on how to solve it?
Neil