typedoc命令中的错误,角度文档生成器

时间:2018-02-14 11:01:17

标签: angular documentation documentation-generation typedoc

我在 angular 项目周围以 typedoc 样式编写了注释和解释。

然后我运行以下命令来生成文档:

typedoc --name Sample Project --out ./docs/ --tsconfig ./tsconfig.json --exclude node_modules --ignoreCompilerErrors app/

但发生以下错误:

fs.js:1001
  binding.stat(pathModule._makeLong(path), statValues);
          ^

Error: ENOENT: no such file or directory, stat '/home/roham/PhpstormProjects/Irantalent-Front4/Front'
    at Error (native)
    at Object.fs.statSync (fs.js:1001:11)
    at /usr/lib/node_modules/typedoc/dist/lib/application.js:145:20
    at Array.forEach (native)
    at CliApplication.Application.expandInputFiles (/usr/lib/node_modules/typedoc/dist/lib/application.js:143:20)
    at CliApplication.bootstrap (/usr/lib/node_modules/typedoc/dist/lib/cli.js:58:28)
    at CliApplication.Application (/usr/lib/node_modules/typedoc/dist/lib/application.js:41:15)
    at new CliApplication (/usr/lib/node_modules/typedoc/dist/lib/cli.js:35:42)
    at Object.<anonymous> (/usr/lib/node_modules/typedoc/bin/typedoc:4:1)
    at Module._compile (module.js:570:32)

1 个答案:

答案 0 :(得分:3)

将您的命令更改为:

result

(在空格前添加typedoc --name Sample\ Project --out ./docs/ --tsconfig ./tsconfig.json --exclude node_modules --ignoreCompilerErrors app/

如果项目名称中有空格,则会出现此问题。