Skip to content

Commit 80c1c22

Browse files
committed
chore(nix): Bump nixpkgs and install nodejs_20 to keep pre-commit happy
I was getting the following error: ``` An unexpected error has occurred: CalledProcessError: command: ('/nix/store/15jzs4a11nqp4m1xvnw0rz9395anzjsm-nodejs-18.20.8/bin/node', '/run/current-system/sw/bin/npm', 'install', '--include=dev', '--include=prod', '--ignore-prepublish', '--no-progress', '--no-save') return code: 1 stdout: (none) stderr: npm error code EBADENGINE npm error engine Unsupported engine npm error engine Not compatible with your version of node/npm: [email protected] npm error notsup Not compatible with your version of node/npm: [email protected] npm error notsup Required: {"node":">=20"} npm error notsup Actual: {"npm":"10.8.2","node":"v18.20.8"} npm error A complete log of this run can be found in: /home/nick/.npm/_logs/2025-05-28T10_40_07_463Z-debug-0.log Check the log at /home/nick/.cache/pre-commit/pre-commit.log ```
1 parent 04c119e commit 80c1c22

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

nix/sources.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

shell.nix

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
{ sources ? import ./nix/sources.nix
2-
, nixpkgs ? sources.nixpkgs
3-
, pkgs ? import nixpkgs { }
1+
{
2+
sources ? import ./nix/sources.nix,
3+
nixpkgs ? sources.nixpkgs,
4+
pkgs ? import nixpkgs { },
45
}:
56

67
let
@@ -9,6 +10,7 @@ in
910
pkgs.mkShell {
1011
packages = [
1112
bake
13+
pkgs.nodejs_20
1214
];
1315

1416
buildInputs = [

0 commit comments

Comments
 (0)