maticzav / emma-cli

📦 Terminal assistant to find and install node packages.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Got error when run command `emma`

taropoo opened this issue · comments

Hi there,

Thank you so much for creating this tool, it looks awesome! However, after I install it, by running npm install -g emma-cli, everytime I enter emma, I get the following error:

const canAccessFile = (0, _util.promisify)(_fs.default.access);
                                          ^

TypeError: (0 , _util.promisify) is not a function
    at Object.<anonymous> (/usr/local/lib/node_modules/emma-cli/dist/emma.js:40:43)
    at Module._compile (module.js:570:32)
    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> (/usr/local/lib/node_modules/emma-cli/dist/index.js:10:36)
    at Module._compile (module.js:570:32)```

hey @taropoo 👋 I am so happy to hear that you like it. It seems like this is a node version problem, which node are you using?

Ah you are right, I don't have the latest version. Let me update it and try again.

Once I upgraded it's all good, thanks!

No problem! Enjoy it! 😄