mixu / archey.js

Archey.js is a system information tool written in JS (based on Archey)
29 stars 11 forks source link

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

Closed petersandor closed 8 years ago

petersandor commented 8 years ago

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.