-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Unable to install Brain.js on PopOS #904
Comments
I also have noticed that many people have created similar issues, but none of them has got a clear solution that works. |
Your error message - Error: Cannot find module 'gpu.js' - means you have to also do |
I wish it was as simple as that. It shows the following error when I do
|
Looks like For kicks, can you share the output of running simply I think a simple solution, if only the latter works, would be to alias alias python=python3 You can simply run the above in your shell and try installing again, but the change will be for the duration of that session. If you want to persist it by adding it to your bash profile, you'll also need to run Let us know how it goes! |
You might need
Or better yet create a venv with |
@cclauss 's recommendation is also a good one and essentially does the same thing I described, as a system-wide package
Some light reading on what this package does and possible drawbacks/considerations. |
I used Homebrew to install Python and have already set the alias like that, but still get the error when trying to install GPU.js that it wants me to install. |
I remember I have already tried this package, but still got the error. |
Will it work when I deploy my Next.js project with Brain.js to Vercel? |
Yes. EDIT: Yes, for Python venv. |
I have set an alias, but still get the following error when doing
|
My "Yes" was for Python venv. |
Both Keep in mind, it is all Next.js. |
What are the results of Oh... stackgl/headless-gl#221 |
The "Oh..." has made me oddly satisfied. So I need to install Python 2, don't I? This is what is apparently said in the thread. |
|
Sorry for sending several messages instead of sending one with everything, but I think I have found a temporary solution which is to install an older version of |
Also see: mikolalysenko/angle#5 |
Hope what you have done will contribute to this problem getting finally fixed. |
Had the same as initial post's stack-trace during install on Mac OS Ventura using python from brew, fixed with:
|
@romaleev bad idea but hey, it is your machine.
|
I had the same problem on Manjaro linux, somehow changing the node version from 20 to 16 fixed the problem. I tested it with multiple versions of node on both my ubuntu VM and my Manjaro machine and found out that brain.js couldnt install on anything newer than node 16. |
Does |
What is wrong?
When I run
npm i brain.js
in the folder of my project, I get the following error:Whenever I try to sort of omit this error and do
yarn add brain.js
, I run the app and get the messageError: Cannot find module 'gpu.js'
.I use Brain.js in Next.js.
Version information
Nodejs:
v20.5.0
Browser:
Google Chrome
Brain.js:
Unable to install, but mean to install the latest version possible.
How important is this (1-5)?
It, I think, is 5, because I cannot install the library from the very get-go.
Other Comments
I never have this error on Windows.
The text was updated successfully, but these errors were encountered: