[Pkg-javascript-devel] Bug#1058596: yarnpkg broken on bookworm - yarnpkg --help fails with TypeError: commander.on is not a function

Pirate Praveen praveen at debian.org
Wed Dec 13 15:09:39 GMT 2023


Package: yarnpkg
Version: 1.22.19+~cs24.27.18-2
severity: grave
justification: breaks any options passed to yarnpkg

yarnpkg install also fails with similar errors due to incompatible 
node-commander

We should backport the patches in unstable to bookworm as well.

# cat /usr/share/nodejs/yarn-error.log
Arguments:
   /usr/bin/node /usr/bin/yarnpkg --help

PATH:
   /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

Yarn version:
   1.22.19

Node version:
   18.13.0

Platform:
   linux x64

Trace:
   TypeError: commander.on is not a function
       at Object.run (/usr/share/nodejs/yarn/lib/cli/commands/help.js:75:13)
       at run (/usr/share/nodejs/yarn/lib/cli/index.js:494:30)
       at /usr/share/nodejs/yarn/lib/cli/index.js:732:24

npm manifest:
   No manifest

yarn manifest:
   No manifest

Lockfile:
   No lockfile


# yarnpkg --frozen-lockfile install
TypeError: _commander(...).default.optionFor is not a function
     at /usr/share/nodejs/yarn/lib/cli/index.js:355:88
     at Array.findIndex (<anonymous>)
     at _callee$ (/usr/share/nodejs/yarn/lib/cli/index.js:352:38)
     at tryCatch 
(/usr/share/nodejs/@babel/runtime/helpers/regeneratorRuntime.js:44:17)
     at Generator.<anonymous> 
(/usr/share/nodejs/@babel/runtime/helpers/regeneratorRuntime.js:125:22)
     at Generator.next 
(/usr/share/nodejs/@babel/runtime/helpers/regeneratorRuntime.js:69:21)
     at asyncGeneratorStep 
(/usr/share/nodejs/@babel/runtime/helpers/asyncToGenerator.js:3:24)
     at _next 
(/usr/share/nodejs/@babel/runtime/helpers/asyncToGenerator.js:22:9)
     at /usr/share/nodejs/@babel/runtime/helpers/asyncToGenerator.js:27:7
     at new Promise (<anonymous>)



More information about the Pkg-javascript-devel mailing list