-
-
Notifications
You must be signed in to change notification settings - Fork 45
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
Support nodejs >= 15, npm >= 7, lockfile version >= 2 #153
Comments
In order to make this work, I'm thinking of these steps:
Potential backwards-compatible alternatives to 2. are:
|
Is there an existing workaround for this issue? Now that node v16 is LTS, this is quite a wart in the side of nix <-> node compatibility. |
@andir @gilligan Is this project abandoned? I understand that the If so, I think a warning message in the README might be appropriate. |
@cmoog My first PR #151 towards fixing this issue was merged somewhat recently. I might have some time soon to continue with the next step from #153 (comment). Would love some feedback as to what you think the best approach to continue is. |
fwiw we're using this to build direnv/direnv-vscode and it's working just fine |
Note: I suggest closing this issue and leaving notes in the README that npmlock2nix needs maintenance. |
Are you using |
Aha, I wasn't, that does remove the warning, thanks! 👍 Although my build is now stuck in the nix builder on |
It seems that nodejs 14 has been marked as insecure in nixpkgs-unstable and is now unsupported. So the current options are to use the insecure nodejs or use the beta v2. Would be good to have a stable option here. |
@kevincox it's also happening on v16 (used by v2 api). A workaround, when importing nixpkgs: import inputs.nixpkgs {
inherit system;
# required by npmlock2nix
config.permittedInsecurePackages = [ "nodejs-16.20.1" ];
} |
nodejs versions >= 15 use npm >= 7, which uses lockfile version 2 which is currently not supported by npmlock2nix, leading to failures like #139 and #140. See #146 for an attempt at implementing it. In addition, hook scripts, which npmlock2nix currently relies on, are also removed, see #110 and also #151 as a workaround.
PR #152 makes npmlock2nix fail early for nodejs version >= 15.
The text was updated successfully, but these errors were encountered: