How to install Phaser3 documents - phaser-framework

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

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

When I run npm install and npm start, it keeps coming up with the following messages

namish#namishs-mbp ~ % npm install
npm WARN saveError ENOENT: no such file or directory, open '/Users/namish/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/Users/namish/package.json'
npm WARN namish No description
npm WARN namish No repository field.
npm WARN namish No README data
npm WARN namish No license field.
up to date in 0.727s
found 0 vulnerabilities
I'm trying to run npm start after this. When I do, this is what happens:
namish#namishs-mbp ~ % npm start
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /Users/namish/package.json
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open '/Users/namish/package.json'
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! /Users/namish/.npm/_logs/2020-08-15T01_15_06_560Z-debug.log```
I don't know why this says this. Is there any way to fix it?
Check the file location of your package.json and try again or use npm init to create one

nodemon install problem as development mode

Whenever I try to install nodemon as dev-dependency, It gives me some errors, I do not know what to do. I tried npm install nodemon --save-dev but it gives me the same errors
I disabled virus protection, run cmd as administrator, but the same problem again
PS D:\My documents\My programs\akademind\nodejs-complete-guide> npm install nodemon --save-dev
npm WARN nodejs-complete-guide#1.0.0 No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.2.9 (node_modules\fsevents):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: EBUSY: resource busy or locked, rename 'D:\My documents\My programs\akademind\nodejs-complete-guide\node_modules\.staging\fsevents-c44863db\node_modules\abbrev' -> 'D:\My documents\My programs\akademind\nodejs-complete-guide\node_modules\.staging\abbrev-fa5cb67d'
npm ERR! code ENOENT
npm ERR! syscall rename
npm ERR! path D:\My documents\My programs\akademind\nodejs-complete-guide\node_modules\expand-brackets\node_modules\debug
npm ERR! dest D:\My documents\My programs\akademind\nodejs-complete-guide\node_modules\undefsafe\node_modules\debug
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, rename 'D:\My documents\My programs\akademind\nodejs-complete-guide\node_modules\expand-brackets\node_modules\debug' -> 'D:\My documents\My programs\akademind\nodejs-complete-guide\node_modules\undefsafe\node_modules\debug'
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\Farrux\AppData\Roaming\npm-cache\_logs\2019-09-15T13_53_36_783Z-debug.log
Try to perform the following steps:
Delete package-lock.json file
Delete node_modules folder and
Install packages by running npm i.

Cannot install or start npm for react

Following error is been thrown when tried to install react.
npm ERR! path C:\Users\web\desktop\boy\package.json
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open 'C:\Users\web\desktop\boy\package.json'
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\web\AppData\Roaming\npm-cache\_logs\2018-08-15T12_19_50_959Z-debug.log
npm install
npm WARN saveError ENOENT: no such file or directory, open 'C:\Users\web\desktop \boy\package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\web\desktop\bo y\package.json'
npm WARN boy No description
npm WARN boy No repository field.
npm WARN boy No README data
npm WARN boy No license field
When you type
npm run start
npm tries to find start in the scripts section of your package.json file.
As you don't have such file, npm fails with ENOENT, which is an abbreviation for Error NO ENTry.
Cheers.
Got the same issue but in the end, find out that the project is within another folder at the same place.
Demo project > My Project (containing node modules and files)
I was in the Demo project and trying to right npm start.

installing npm package.json giving me errors

This is just an example. But for example i was creating a react project through npm and it was saying it can't locate my package.json file... Any help will be greatly appreciated.. I will also post the code of the process in creating react project. It is happening when created any type of project. I have deleted Node+Npm and re installed it and it still giving me problems.
Thu Sep 2818:00:09React:Node 👽 npm start
npm ERR! path /Users/richardjimenez/school/React:Node/package.json
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open '/Users/richardjimenez/school/React:Node/package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
Thu Sep 2817:51:50~ 👽 npm install --save latest-version
npm WARN saveError ENOENT: no such file or directory, open '/Users/richardjimenez/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/Users/richardjimenez/package.json'
npm WARN richardjimenez No description
npm WARN richardjimenez No repository field.
npm WARN richardjimenez No README data
npm WARN richardjimenez No license field.
You have a colon in your address which could be causing the issue.

Rangeslider.js does not install

I am trying to install and use the rangeslider.js API, I have downloaded the latest version and I have gone about installing it via the terminal using both npm and bower install commands. When I try the npm install, i get the following error:
npm WARN checkPermissions Missing write access to /Users/Brian/node_modules
npm WARN enoent ENOENT: no such file or directory, open '/Users/Brian/package.json'
npm WARN Brian No description
npm WARN Brian No repository field.
npm WARN Brian No README data
npm WARN Brian No license field.
npm ERR! path /Users/Brian/node_modules
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
npm ERR! Error: EACCES: permission denied, access '/Users/Brian/node_modules'
npm ERR! { Error: EACCES: permission denied, access '/Users/Brian/node_modules'
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'access',
npm ERR! path: '/Users/Brian/node_modules' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/Brian/.npm/_logs/2017-06-30T20_40_33_877Z-debug.log
And when I try the bower install, I get this one:
bower cached https://github.com/andreruffert/rangeslider.js.git#2.3.0
bower validate 2.3.0 against https://github.com/andreruffert/rangeslider.js.git#*
bower no-json No bower.json file to save to, use bower init to create one
The last message on the bower install seems pretty clear, I need to create some sort of jSON file, but I have no idea what the requirements for it are and where I need to save it to. Can anyone help? Before you all suggest it: sudo install does not solve anything.

Resources