Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't find koin-graph.js #15

Open
fmatosqg opened this issue Nov 18, 2019 · 3 comments
Open

Can't find koin-graph.js #15

fmatosqg opened this issue Nov 18, 2019 · 3 comments

Comments

@fmatosqg
Copy link

Installed as shown in instructions sudo npm install -g koingraph

Unfortunately I'm useless when it comes to js so I'm not able to debug it.

> koingraph --path app/
Reading Project...
Project Loaded
Reading Koin Dependencies...
Success building Koin dependencies
? Now, what graph do you want to render? Tree Graph
(node:17509) UnhandledPromiseRejectionWarning: Error: EACCES: permission denied, open '/usr/local/lib/node_modules/koingraph/ui/tree/koin-graph.js'
    at Object.fs.openSync (fs.js:646:18)
    at Object.fs.writeFileSync (fs.js:1299:33)
    at inquirer.prompt.then.answers (/usr/local/lib/node_modules/koingraph/index.js:50:10)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
(node:17509) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:17509) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

I could verify though that such file does not exist:

> ls /usr/local/lib/node_modules/koingraph/ui/tree/
tree-graph.html  TreeGraphMapper.js
@tentenponce
Copy link
Owner

tentenponce commented Dec 6, 2019

Hi @fmatosqg, sorry for the late reply. What OS are you using? If Windows, try to run as administrator the command prompt. If Linux, try to add sudo before your command.

@fmatosqg
Copy link
Author

fmatosqg commented Dec 11, 2019 via email

@tentenponce
Copy link
Owner

Hm you have a point, I think it should be written on what folder you are in so it doesn't require permissions. I'll check on this and update the library. Thanks .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants