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

Arch Linux - Cannot read property 'trim' of undefined (missing dependency) #10

Closed
petersandor opened this issue Jul 24, 2016 · 0 comments

Comments

@petersandor
Copy link
Contributor

Hi! I just installed this package, and whenever I try to run it I get this:

$ archeyjs
/home/petersandor/.local/share/npm/lib/node_modules/archey/index.js:275
          distro = stdout.trim().split(':')[1].trim();
                                              ^

TypeError: Cannot read property 'trim' of undefined
    at /home/petersandor/.local/share/npm/lib/node_modules/archey/index.js:275:47
    at ChildProcess.exithandler (child_process.js:209:5)
    at emitTwo (events.js:106:13)
    at ChildProcess.emit (events.js:191:7)
    at maybeClose (internal/child_process.js:852:16)
    at Socket.<anonymous> (internal/child_process.js:323:11)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at Pipe._handle.close [as _onclose] (net.js:492:12)

I debugged and I found out that I was missing lsb-release package. I think it would be a good idea to mention it as a requirement in readme.

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

1 participant