javascript - Trouble running Docco on Windows 7 -
i'm having trouble running docco on windows 7. did following:
- downloaded , installed python , perl
- installed node js
- run npm install -g coffee-script
- run easy_install pygments
- run npm install -g pygments
- 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
Post a Comment