bl module install fails if there are .DS_Store or any other files in the modules directory
If you navigate to the modules directory using Finder, it will create hidden .DS_Store
files which will cause the bl module install
command to fail. Looks like in the file libs/module-builder.js
that it is reading a directory and then assuming the returned items are directories which in the case of .DS_Store
files they are not.
One possible fix is to do something like the following on line 31 of libs/module-builder.js
to filter out non-directories:
var sites=fs.readdirSync(modulesRoot).filter(function(site){
var sitePath=_path.resolve(modulesRoot, site);
return fs.lstatSync(sitePath).isDirectory();
});