[Pkg-javascript-devel] Bug#986117: yarnpkg is not compatible with node-proper-lockfile 3.0.0+

anomie at users.sourceforge.net anomie at users.sourceforge.net
Mon Mar 29 19:38:01 BST 2021


Package: yarnpkg
Version: 1.22.10+~cs22.25.14-2

Yarn uses proper-lockfile to implement its `--mutex=file:whatever`
option. Its package.json depends on proper-lockfile ^2.0.0, which had
the calling convention

  lockfile.lock( file, options, callback )

In proper-lockfile 3.0.0 they removed that calling convention in favor
of use of promises (much like what happened with mkdirp in bug #972952).
This causes yarn's callback to never be called, so yarn does nothing
other than print the command name. See, for example,

  $ yarn init --mutex=file:whatever
  yarn init v1.22.10
  $



More information about the Pkg-javascript-devel mailing list