Skip to content

program.option is not a function

Usually I use pvc on Slackware, FreeBSD, but temporarily Devuan. This is what happened.

d@cosmos:~$ pvc check
/usr/share/pvc/pvc:266
program.option('-d, --debug', 'Additional debugging output')
        ^

TypeError: program.option is not a function
    at Object.<anonymous> (/usr/share/pvc/pvc:266:9)
    at Module._compile (node:internal/modules/cjs/loader:1356:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
    at Module.load (node:internal/modules/cjs/loader:1197:32)
    at Module._load (node:internal/modules/cjs/loader:1013:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12)
    at node:internal/main/run_main_module:28:49

Node.js v18.19.0
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information