Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails on lockfileVersion: 3 #55

Closed
kevincox opened this issue Mar 13, 2023 · 2 comments · Fixed by #58
Closed

Fails on lockfileVersion: 3 #55

kevincox opened this issue Mar 13, 2023 · 2 comments · Fixed by #58

Comments

@kevincox
Copy link

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:

  1. Download https://gitlab.com/kevincox/filepush/-/commit/08f97910ef4d8e99fa1878938ecd2c2edea1398d as a publicly-available example. (Exact commit is not relevant, just pinning a reference)
  2. Run nix-build and observe that it succeeds.
  3. Run npm install--lockfile-version 3 --package-lock-only.
  4. Run nix-build and observe that it fails.
@kevincox
Copy link
Author

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.

@mdarocha
Copy link
Contributor

Done in #58

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants