tentenponce / KoinGraph

Graph generator for android projects using Koin
MIT License
16 stars 1 forks source link

Problem launching command #10

Closed mibaldi closed 5 years ago

mibaldi commented 5 years ago

I have a problem launching command, /Users/mikelbalducieldiaz/.nvm/versions/node/v6.9.5/lib/node_modules/koingraph/node_modules/opn/index.js:11 const wslToWindowsPath = async path => { ^^^^ SyntaxError: Unexpected identifier at Object.exports.runInThisContext (vm.js:76:16) at Module._compile (module.js:542:28) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) at Module.require (module.js:497:17) at require (internal/module.js:20:19) at Object.<anonymous> (/Users/mikelbalducieldiaz/.nvm/versions/node/v6.9.5/lib/node_modules/koingraph/index.js:4:13) at Module._compile (module.js:570:32) I use a mac book pro with macOS Mojave 10.14.5 And my version of node is v6.9.5 The installation return this: image

mibaldi commented 5 years ago

Now using node v12.4.0 (npm v6.9.0) which are the requirements?

tentenponce commented 5 years ago

Mine is working on v10.16.0 (LTS Version) I'll to recreate the problem, opn is deprecated, I'll also update this on the next release.

tentenponce commented 5 years ago

I've tried on v12.4.0 with npm v6.9.0, it works without any problem. koingraph

Try to reinstall it:

npm remove -g koingraph

Then:

npm install -g koingraph

mibaldi commented 5 years ago

I changed with "nvm use 12.4.0" and it works