javascript - Trouble running Docco on Windows 7 -


i'm having trouble running docco on windows 7. did following:

  1. downloaded , installed python , perl
  2. installed node js
  3. run npm install -g coffee-script
  4. run easy_install pygments
  5. run npm install -g pygments
  6. run npm install -g docco

i navigated directory javascript source:

c:\javascript>docco animation.js docco: animation.js -> docs\animation.html  fs.js:427   return binding.open(pathmodule._makelong(path), stringtoflags(flags), mode);                  ^ error: enoent, no such file or directory 'c:\javascript\docs\animation.html'     @ object.fs.opensync (fs.js:427:18)     @ object.fs.writefilesync (fs.js:966:15)     @ write (c:\users\myaccount\appdata\roaming\npm\node_modules\docco\docco.js:111:15)     @ c:\users\myaccount\appdata\roaming\npm\node_modules\docco\docco.js:29:11      @ fs.js:266:14     @ object.oncomplete (fs.js:107:15) 

any idea problem is?

looking @ docco sources, problem:

ensuredirectory = function(dir, callback) {   return exec("mkdir -p " + dir, function() {     return callback();   }); }; 

in other words: assumes executable called mkdir exists, , uses creates necessary directories (including output directory). mkdir unix-ism, , (usually) not available on windows. fails (and since docco isn't checking errors, happily continues if nothing happened...).

edit: seems these issues were fixed recently, if use github-hosted version of docco might work.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -