How to install Phaser3 documents

Viewed 52

I can't seem to figure out how to install the documents for offline use. I wanted to download them to an external drive d:. I used Phaser GitHub and went to the D: drive and created a folder called phaser and then cloned the GitHub repo.

Now I have D:\phaser\phaser.

I also installed jsDocs using npm install -g jsdoc and it was installed at C:\Users\jfire\AppData\Roaming\npm\node_modules\jsdoc

How do I now use jsDocs to show the phaser documents? I tried running npm run gen from the D:\phaser\phaser folder but get this error

$ npm run gen
npm ERR! missing script: gen

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\jfire\AppData\Roaming\npm-cache\_logs\2021-07-16T23_58_11_318Z-debug.log

I'm not really sure how this kind of stuff works but need to get these documents available offline for viewing. Any help would be appreciated.

Adding error code from 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:\phaser\phaser\node_modules\@babel\parser
npm ERR! dest D:\phaser\phaser\node_modules\@babel\.parser.DELETE
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, rename 'D:\phaser\phaser\node_modules\@babel\parser' -> 'D:\phaser\phaser\node_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:\Users\jfire\AppData\Roaming\npm-cache\_logs\2021-07-17T01_44_36_990Z-debug.log

1 Answers

You would need npm install (without parameter) in order to install the scripts declared in package.json, with the node_modules/.bin folder in the path.

Then npm run gen would run the gen script.

Related