如何安装Phaser3文档



我似乎不知道如何安装脱机使用的文档。我想把它们下载到一个外部驱动器d:。我使用了PhaserGitHub,转到D:驱动器,创建了一个名为phaser的文件夹,然后克隆了GitHub repo。

现在我有了D:phaserphaser

我还使用npm install -g jsdoc安装了jsDocs,它安装在C:UsersjfireAppDataRoamingnpmnode_modulesjsdoc

我现在如何使用jsDocs来显示相位器文档?我尝试从D:phaserphaser文件夹运行npm run gen,但得到了这个错误

$ npm run gen
npm ERR! missing script: gen
npm ERR! A complete log of this run can be found in:
npm ERR!     C:UsersjfireAppDataRoamingnpm-cache_logs2021-07-16T23_58_11_318Z-debug.log

我真的不确定这类东西是如何工作的,但需要让这些文档离线查看。如有任何帮助,我们将不胜感激。

npm install添加错误代码

jfire@DESKTOP-FOR4DMS MINGW64 /d/phaser/phaser (master)
$ npm install
npm WARN tar EINVAL: invalid argument, futime
npm WARN tar EINVAL: invalid argument, futime
npm WARN tar EINVAL: invalid argument, futime
npm WARN tar EINVAL: invalid argument, futime
npm WARN tar EINVAL: invalid argument, futime
npm WARN tar EINVAL: invalid argument, futime
npm WARN tar EINVAL: invalid argument, futime
npm WARN tar EINVAL: invalid argument, futime
npm ERR! code ENOENT
npm ERR! syscall rename
npm ERR! path D:phaserphasernode_modules@babelparser
npm ERR! dest D:phaserphasernode_modules@babel.parser.DELETE
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, rename 'D:phaserphasernode_modules@babelparser' -> 'D:phaserphasernode_modules@babel.parser.DELETE'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR!     C:UsersjfireAppDataRoamingnpm-cache_logs2021-07-17T01_44_36_990Z-debug.log

您需要npm install(无参数(才能安装在package.json中声明的脚本,路径中有node_modules/.bin文件夹。

然后npm run gen将运行gen脚本。

最新更新