Question:
Hi, my name is Alex and I am collaborating on a project called Tungsten. A user in our dev team attempted to update Nix, and now the Repl won’t even start Repl link: Tungsten
code snippet
nix error: building nix env: exit status 1
Output has been trimmed to the last 20 lines
evaluating file '/nix/store/4va5hjb3sdk8pnpn3dsnkdg65fw28jgv-nixpkgs-23.05-src/lib/trivial.nix'
evaluating file '/nix/store/4va5hjb3sdk8pnpn3dsnkdg65fw28jgv-nixpkgs-23.05-src/lib/lists.nix'
evaluating file '/nix/store/qv8ilmw19rf0vng64qp86mb18kkr6h3z-nixpkgs-stable-23_05-23.05.tar.gz/nixpkgs-stable-23_05/overlay.nix'
evaluating file '/nix/store/4va5hjb3sdk8pnpn3dsnkdg65fw28jgv-nixpkgs-23.05-src/pkgs/stdenv/booter.nix'
evaluating file '/nix/store/4va5hjb3sdk8pnpn3dsnkdg65fw28jgv-nixpkgs-23.05-src/pkgs/stdenv/default.nix'
evaluating file '/nix/store/4va5hjb3sdk8pnpn3dsnkdg65fw28jgv-nixpkgs-23.05-src/lib/systems/default.nix'
evaluating file '/nix/store/4va5hjb3sdk8pnpn3dsnkdg65fw28jgv-nixpkgs-23.05-src/lib/attrsets.nix'
evaluating file '/nix/store/4va5hjb3sdk8pnpn3dsnkdg65fw28jgv-nixpkgs-23.05-src/lib/systems/inspect.nix'
evaluating file '/nix/store/4va5hjb3sdk8pnpn3dsnkdg65fw28jgv-nixpkgs-23.05-src/lib/systems/architectures.nix'
evaluating file '/nix/store/4va5hjb3sdk8pnpn3dsnkdg65fw28jgv-nixpkgs-23.05-src/lib/systems/parse.nix'
evaluating file '/nix/store/4va5hjb3sdk8pnpn3dsnkdg65fw28jgv-nixpkgs-23.05-src/lib/strings.nix'
evaluating file '/nix/store/4va5hjb3sdk8pnpn3dsnkdg65fw28jgv-nixpkgs-23.05-src/lib/types.nix'
evaluating file '/nix/store/4va5hjb3sdk8pnpn3dsnkdg65fw28jgv-nixpkgs-23.05-src/lib/systems/platforms.nix'
evaluating file '/nix/store/4va5hjb3sdk8pnpn3dsnkdg65fw28jgv-nixpkgs-23.05-src/lib/modules.nix'
evaluating file '/nix/store/4va5hjb3sdk8pnpn3dsnkdg65fw28jgv-nixpkgs-23.05-src/pkgs/top-level/config.nix'
evaluating file '/nix/store/4va5hjb3sdk8pnpn3dsnkdg65fw28jgv-nixpkgs-23.05-src/lib/options.nix'
evaluating file '/home/runner/.config/nixpkgs/config.nix'
error: syntax error, unexpected end of file, at /home/runner/.config/nixpkgs/config.nix:1:1
(use '--show-trace' to show detailed location information)
panic: exec: "node": executable file not found in $PATH
goroutine 1 [running]:
main.Execute(0xc000138000)
github.com/replit/prybar/languages/nodejs/main.go:40 +0x2c9
main.main()
github.com/replit/prybar/languages/nodejs/generated_launch.go:7 +0x2a
repl process died unexpectedly: exit status 2
Giving up. You can try again by clicking Run. You may need to fix the [interpreter] definition in the .replit file first.
As Firepup said, it’s hard to help if you don’t show us the contents of the replit.nix file. But reading the error, if what you (or your friend) did was upgrade from Nix channel 22_11 to 23_05, you probably forgot to remove pkgs.replitPackages.jest from your replit.nix file. You’re getting the error because replitPackages doesn’t exist in this newer channel, as Replit is moving to Nix modules.