jwerle / rfc

IETF RFC reader tool

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rfc open throws error when no PAGER env var

detj opened this issue · comments

rfc open errors if PAGER environment variable is not set. Which was the case in my macOS High Sierra terminal.

$ rfc open 3492
child_process.js:380
    throw new TypeError('"file" argument must be a non-empty string');
    ^

TypeError: "file" argument must be a non-empty string
    at normalizeSpawnArguments (child_process.js:380:11)
    at Object.exports.spawn (child_process.js:493:38)
    at Object.open (/Users/detj/n/lib/node_modules/rfc/index.js:281:14)
    at RFC.open (/Users/detj/n/lib/node_modules/rfc/index.js:400:18)
    at openRFC (/Users/detj/n/lib/node_modules/rfc/bin/rfc:273:18)
    at open (/Users/detj/n/lib/node_modules/rfc/bin/rfc:247:12)
    at Object.<anonymous> (/Users/detj/n/lib/node_modules/rfc/bin/rfc:113:7)
    at Module._compile (module.js:660:30)
    at Object.Module._extensions..js (module.js:671:10)
    at Module.load (module.js:573:32)