CNode

Ubuntu 12.04 安装 docco

Jjiyinyiyong发布于14 年前最后回复14 年前0 回复5484 浏览0 收藏

水一次, 没想到安装个 docco 还要绕, 安装记录记下,
安装好了以后发现不能用, 虽然我知道 pygments 没装, 但也不给个提示的..

sudo npm install -g docco
➤➤ docco 01/*.coffee

events.js:48
        throw arguments[1]; // Unhandled 'error' event
                       ^
Error: write EPIPE
    at errnoException (net.js:670:11)
    at Object.afterWrite [as oncomplete] (net.js:503:19)

➤➤ docco script.coffee
events.js:48
        throw arguments[1]; // Unhandled 'error' event
                     ^
Error: write EPIPE
    at errnoException (net.js:670:11)
    at Object.afterWrite [as oncomplete] (net.js:503:19)

Ubuntu 12.04 万幸自带包的, 速度安装.

aptitude search python-pygments
sudo aptitude install python-pygments

装上之后, 正常了, 无论是所个还是单个文件都会生成文件夹:

➤➤ docco script.coffee
docco: script.coffee -> docs/script.html
➤➤ docco *.coffee
docco: script.coffee -> docs/script.html
查看回复

回复 (0)

暂无回复,成为第一个参与讨论的人。
参与回复
登录后即可参与回复。登录