Closed joostrijneveld closed 8 years ago
So, it turns out the problem is with (dependencies of) lessc
. In particular, this line requires the mkdirp
package, and otherwise falls back to mkdirSync
, as is seen in my stacktrace. By installing mkdirp
(e.g. node-mkdirp
via apt
), it is now able to create full paths, and everything is golden.
The crucial difference is that mkdirp
, as opposed to mkdirSync
, creates full paths.
I'm trying to use
django-static-precompiler
to compile LESS stylesheets. I've installed the Debian packagenode-less
, which has provided me with thelessc
compiler.When I try to compile a LESS file called e.g.
css/style.less
(in astatic
directory), however, I get the following error:It does create the
/static/
folder when executing this, but does not createCOMPILED
folder. Everything works fine when I manually create thestatic/COMPILED
folder; it will then create thecss
folder itself.When I then try to compile a LESS file that is not nested in a subfolder, i.e. directly accessible as a static file, it works when the
static
directory already exists: in that case it is able to create theCOMPILED
directory by itself.From all of the above, I observe that it is trying to create the nested path to store the compiled LESS files, but is only able to create 1 subdirectory. For some reason, creation of multiple subdirectories fails.