简体   繁体   English

在Windows上运行TypeDoc不会生成文件,也不会出错

[英]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.

相关问题 npm install会生成大量错误 - npm install generates huge list of errors NPM在安装模块时会产生一些错误 - NPM generates several errors when installing modules Webpack使用CSS / CSS文件生成js文件 - Webpack generates js files with css / scss files 在 cmd 中运行 npm 给我错误,我刚刚在 Windows 上安装了 nodejs msi - Running npm in cmd giving me errors, I just installed nodejs msi on windows 即使以管理员身份运行后,npm install -g windows-build-tools 也会给我错误 - npm install -g windows-build-tools is giving me errors even after running as administrator Typedoc使用require语法抛出错误 - Typedoc throws error with the require syntax 如何使用 Node JS http get 方法下载大量远程文件而不会遇到错误 - How to download huge list of remote files using Node JS http get method without running into errors 告诉 Typedoc 不要加载 Jasmine 注释 - Telling Typedoc Not to Load Jasmine Annotations 当我运行已编译的文件时,如何在node.js中回溯错误? - How to traceback errors in node.js when I'm running transpiled files? 我在Windows 7上运行nodejs,安装节点模块(mongodb驱动程序,mongoose等)时出现以下错误: - I am running nodejs on windows 7 and I get below errors in the console when installing node modules (mongodb driver, mongoose etc)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM