Configuring Jade Using webstorm on MAC

I get an error while compiling a jade file on my mac. I've already read too many blog posts, but the problem still comes up.

Here is a screenshot of the error I get:

Setup Jade using webstorm Mac

Can someone tell me how I can configure jade to MAC address of Webstrom.

In the terminal, when I try to compile this command, I got error no: 156

mandeepgill-macpro:~ mandeepgill$ cd /Applications/MAMP/htdocs mandeepgill-macpro:htdocs mandeepgill$ cd HTMLCodes mandeepgill-macpro:HTMLCodes mandeepgill$ cd Sports mandeepgill-macpro:Sports mandeepgill$ cd public_html mandeepgill-macpro:public_html mandeepgill$ jade main.jade main.html /usr/local/lib/node_modules/jade/bin/jade:156 if (err) throw err; ^ Error: EISDIR, open 'main.html' mandeepgill-macpro:public_html mandeepgill$ 
+4
source share
1 answer

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.

0
source

Source: https://habr.com/ru/post/1496968/


All Articles