Fails on lockfileVersion: 3
kevincox opened this issue · 2 comments
kevincox commented
When running there are many errors of the following form as well as a lot of gobbledygook as it appears that multiple messages are being character-by-character concurrently.
No such tarball
CallStack (from HasCallStack):
error, called at Main.hs:212:8 in main:Main
No such tarball
To reproduce:
- Download https://gitlab.com/kevincox/filepush/-/commit/08f97910ef4d8e99fa1878938ecd2c2edea1398d as a publicly-available example. (Exact commit is not relevant, just pinning a reference)
- Run
nix-build
and observe that it succeeds. - Run
npm install--lockfile-version 3 --package-lock-only
. - Run
nix-build
and observe that it fails.
kevincox commented
Unless you need a v3 lockfile this can be worked around by downgrading the lockfile:
npm install --lockfile-version 2 --package-lock-only
It seems that current versions of npm
default to a v3 lockfile but will not upgrade from v2
to v3
automatically.