typedoc 命令错误,angular 文档生成器

error in typedoc command, the angular document generator

我在我的 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)

将命令更改为:

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

(在space前加上\)

当您的项目名称中包含 space 时会出现此问题。