-
Notifications
You must be signed in to change notification settings - Fork 70
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
install problem #135
Comments
What's your |
I have v20.10.0 installed on my computer. I installed the same on the virtual server and tried again. First, it gave the error "Python is not installed" and then it gave the errors I added below. operating system: server 2019 node version : v20.10.0 |
Do you have any solution suggestions? |
Potentially duplicate of/similar root cause as the following issues:
With some notes from there:
Skimming through the initial attached log, there seem to be a number of errors/warnings. This part might not matter (not 100%, just guessing):
This is probably a breaking error:
This is probably only needed because no prebuilt binary was found:
Failing to load a prebuilt binary is probably based on a combination of node version and system architecture. Then the 'build from source' might be failing because you're running it in
We can see the prebuilt dependencies in the "optionalDependencies": {
"@node-llama-cpp/linux-arm64": "0.1.0",
"@node-llama-cpp/linux-armv7l": "0.1.0",
"@node-llama-cpp/linux-x64": "0.1.0",
"@node-llama-cpp/linux-x64-cuda": "0.1.0",
"@node-llama-cpp/linux-x64-vulkan": "0.1.0",
"@node-llama-cpp/mac-arm64-metal": "0.1.0",
"@node-llama-cpp/mac-x64": "0.1.0",
"@node-llama-cpp/win-arm64": "0.1.0",
"@node-llama-cpp/win-x64": "0.1.0",
"@node-llama-cpp/win-x64-cuda": "0.1.0",
"@node-llama-cpp/win-x64-vulkan": "0.1.0"
} The source for these are here: Since there is a @Yusufkulcu Does the machine you're installing this on have access to the internet? I'm guessing it tries to dynamically decide which optional binary package it will need based on the system and install that. We can see that when building the package, it runs Which we can see is defined in
In Which is defined here, and calls Which is defined here, and seems to be the part of the package that gets the systems platform/architecture, and tries to determine if it can use prebuilt binaries or not/etc: Within that, we can see there is a call to
That calls
} else if (buildOptions.platform === "win") {
if (buildOptions.arch === "x64") {
if (buildOptions.gpu === "cuda")
// @ts-ignore
return getBinariesPathFromModules(() => import("@node-llama-cpp/win-x64-cuda"));
else if (buildOptions.gpu === "vulkan")
// @ts-ignore
return getBinariesPathFromModules(() => import("@node-llama-cpp/win-x64-vulkan"));
else if (buildOptions.gpu === false)
// @ts-ignore
return getBinariesPathFromModules(() => import("@node-llama-cpp/win-x64"));
} else if (buildOptions.arch === "arm64")
// @ts-ignore
return getBinariesPathFromModules(() => import("@node-llama-cpp/win-arm64"));
} This then calls Jumping back out to The actual triggering error is appended to the end of that message, so the root issue appears to be this part:
@Yusufkulcu So I guess the first thing I would be doing is checking whether that file actually exists, and if there is anything that might be blocking it from being able to be loaded (permissions, antivirus, etc):
If that doesn't help, you may be able to get some more specific ideas/support on the GitHub Discussions page for I took the liberty to open a discussion there based on this issue to potentially expediate getting an official answer: @Yusufkulcu @jehna It seems that Line 57 in 64a1b95
Whereas it seems to now be up to
@Yusufkulcu The error in your screenshot here is a different error to the one in your initial post. The error you're getting on the virtual server here is related to there not being a prebuilt binary for But solving that won't solve the issues you're having on your main system install. |
@Yusufkulcu Some further ideas/google results based on
|
Some notes from upstream:
Full comment:
|
I bought a new virtual server and I'm trying to install it. but I get the errors in the images. what could be the problem?
I added the error log below
command used: "npm install -g humanifyjs"
log.txt
The text was updated successfully, but these errors were encountered: