title: How to create a directory in node js using fs.mkdir?
body: <p>Here I am trying to create a directory using async function fs.mkdir using the below code but I am getting a error</p>
  
  <pre><code>ERROR: No such file or directory, mkdir 'C:\tmp\test';
  
  var fs = require("fs");
  console.log("Going to create directory /tmp/test");
  fs.mkdir('/tmp/test',function(err){
      if (err) {
          return console.error(err);
      }
  console.log("Directory created successfully!");
  });
  </code></pre>
  
  <p>Any Help regarding this will be highly appreciated.</p>