Open saurin-tech opened 11 months ago
Are you able to check if the /home/dev/a/b/c/.gradle/nodejs/node-v18.17.1-linux-x64/bin/node
file exists and if the nodeSetup
task finished successfully?
And then just to confirm, you're not on Alpine or another musl-based system right?
> Task :a:clean UP-TO-DATE
> Task :b:nodeSetup UP-TO-DATE
> Task :b:npmSetup SKIPPED
> Task :b:npmInstall
File does exist at the location listed above but when I try to execute it in terminal I receive an error zsh: no such file or directory:
I'm trying to run this on NixOS
Ah, well I've got good and bad news for you. The bad news is you're gonna have to do some changes, but the good news I recently installed NixOS and have a basic idea of what those are 😀
You're going to need either a FHS or use something like nix-ld (or the very heavy approach of steam-run).
Personally I'm using nix-ld
together with nix-direnv
to set what I need to work on this project.
Unfortunately I need to run that flake with --impure
since I don't know how to do that "properly", but this works well enough for me
https://github.com/node-gradle/gradle-node-plugin/blob/1ea8bf828630c344ac8fc243e01f61c0beb223f4/flake.nix#L25-L28
Basically it's the same issue as with musl, if you run ldd
on the node
binary you'll see that it's expecting glibc and it's not being found
And technically there's nothing this plugin can do to accommodate NixOS, this is a conscious decision from their project and while this may be awkward from the perspective of users there's several workarounds
Before I made the flake above I just ran steam-run zsh
before developing and that worked mostly great
I'm attempting to use the plugin with gradle version of 7.6 but I'm running into the error shown below.
Contents of x.log file
contents of the build.gradle.kts file
Gradle output shows error caused by statement shown below
Thank you in advance!