[英]Running TypeDoc on Windows generates no files and no errors
I am attempting to use TypeDoc to generate documentation for a js app I am developing. 我正在尝试使用TypeDoc为正在开发的js应用生成文档。 For some reason, I can't get TypeDoc to output anything - files or errors.
由于某种原因,我无法让TypeDoc输出任何内容-文件或错误。
To get to this point I installed TypeDoc inside the project folder: 为此,我将TypeDoc安装在项目文件夹中:
npm install typedoc --save-dev
Then I opened PowerShell (also tried cmd) in admin in the project folder and attempted to run TypeDoc with several variations to see if I could get it to work: 然后,我在项目文件夹的admin中打开PowerShell(也尝试使用cmd),并尝试运行带有几种变体的TypeDoc,以查看是否可以使它工作:
node typedoc --help
throws an error stating the module cannot be found node typedoc --help
引发错误,指出找不到模块 node node_modules/typedoc --help
appears to run but does not produce any output node node_modules/typedoc --help
似乎正在运行,但不产生任何输出 node node_modules/typedoc --out docs --mode modules ./
also appears to run but does not produce any output node node_modules/typedoc --out docs --mode modules ./
也似乎正在运行,但不产生任何输出 I have tried a few other variations and can't seem to get any messages to the console or generate any files. 我尝试了其他一些变体,但似乎无法将任何消息发送到控制台或生成任何文件。
I am running Node v9.10.1 and TypeDoc 0.15.0. 我正在运行Node v9.10.1和TypeDoc 0.15.0。
You are probably wanting to use npx
which is included with recent versions of node. 您可能想要使用最新版本的节点中包含的
npx
。 It will automatically look up the package you are trying to use (either using the local version or installing it to cache. 它将自动查找您要使用的软件包(使用本地版本或将其安装到缓存中。
With that you should be able to run typedoc. 这样您应该能够运行typedoc。
npx typedoc --help
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.