An EISDIR error occurs when a Node application expects a file but receives a directory .
This particular instance of this error was caused by this code block :
fs.writeFile(path, output, function(err){ if (err) throw err; console.log(' \033[90mrendered \033[36m%s\033[0m', path); });
You can tell, because this is not error number 156, but the line number of the corresponding code.
Do you have a directory named main.html in /Applications/MAMP/htdocs/HTMLCodes/Sports/public_html ?
Alternatively, you can simply execute the jade main.jade without a second argument. This would seem to make your life easier.
Although if your dead is set up to use Webstorm on a Mac, this configuration should work equally well , or to make it very simple, just put $FileName$ in the arguments and get rid of the output paths.
It seems like this was a fairly common issue with Webstorm watchers, so you can just use the jade --watch command line.
source share