The `npm pack` runs lifecycle scripts which can
spoil the standard output of the command and prevent
correct parsing of the created tarball.
For details see:
https://docs.npmjs.com/cli/v8/using-npm/scripts#life-cycle-scripts
Include a simple fix to parse out the tarball from the last line
and cover the fix with a simple test.
Signed-off-by: Miroslav Vadkerti <mvadkert@redhat.com>
On riscv64, nodeenv will pull binary from unofficial-builds [1], and
unfortunately 18.13.0 seems to be the only version above 18 that is
missing riscv64 builds. Shifting the version slightly to make test work.
Go's binary now ships with linux/riscv64 binary since 1.21.