-
Got this error when I try to install v3.0.1
I saw a post like this one, so I thought I pretty much have to just install node-llama-cpp if I want to use NodeJS with it. Help? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
It seems that the Since I see that the code is running on Linux, it may be related to the installation of nodejs, SELinux policy, or improper permissions. If you can run |
Beta Was this translation helpful? Give feedback.
It seems that the
npm
process exited with code1
without printing a reason for this to the console, so there are no logs for this.Since I see that the code is running on Linux, it may be related to the installation of nodejs, SELinux policy, or improper permissions.
There's an issue with some nodejs installations on Linux where nodejs cannot spaw other processes, and this is required for building
llama.cpp
from source.From my experience, it usually happens when installing nodejs from snap, so if that's the case, try to uninstall it and install it from NodeSource instead.
If you can run
npx -y node-llama-cpp inspect gpu
and attach the output of it, it would help me figure out what the is…