Il 11/12/21 18:29, Brian Thompson ha scritto:
Package: yarnpkg
Severity: important
Dear Maintainer,
After install yarnpkg for the first time and running `yarnpkg --version`, I
got the following error:
Error: Cannot find module '@babel/runtime/helpers/interopRequireWildcard'
I expected the package to return its version.
Thanks for reporting the issue. Unfortunately I can not reproduce it on
any of my systems here.
I also tried on a "clean" Debian stable install with:
docker run -it --rm debian:bullseye bash
apt update && apt install yarnpkg
yarnpkg --version
and I get:
1.22.10
I run the command under strace and it looks like indeed it does not find
/usr/share/nodejs/yarn/node_modules/@babel/runtime/helpers/interopRequireWildcard.js,
but it then proceeds to also try
/usr/lib/x86_64-linux-gnu/nodejs/@babel/runtime/helpers/interopRequireWildcard.js
(not here) and finally
/usr/share/nodejs/@babel/runtime/helpers/interopRequireWildcard.js (this
one is there).
With:
dpkg -S
/usr/share/nodejs/@babel/runtime/helpers/interopRequireWildcard.js
I find that interopRequireWildcard.js is installed by package
node-babel7-runtime which is listed as a "dep" of yarnpkg here:
https://packages.debian.org/bullseye/yarnpkg
Is it possible that on your system you have installed some non-Debian
node module that takes precedence over the ones installed by the Debian
packages?
Paolo
--
Pkg-javascript-devel mailing list
Pkg-javascript-devel@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel