-
-
Notifications
You must be signed in to change notification settings - Fork 139
Node Version? #1690
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
Comments
Nevermind. Node 22. The Docs are uneditable though :) |
@eightysixed , indeed, it's Node 22. That page of documentation could use some love, yes. |
Okay, will do 👍 Is 22 required or just supported? |
for building the project from source, 22 is definitely required — for running it, I think v20 should work as well. Give me a minute, I'll do a test build with v20 runtime and confirm back |
Indeed, at application level we enforce at least Node 20. I believe Electron uses (or at least used at some point) Node 20 so we could not enforce Node 22. Generally we encourage using the latest LTS versions when possible. |
interestingly though: for the Server build (using the build-server script locally) → using v20.19.0 produces a crash when trying to run it
will need to check this evening, if that is an issue on my side only though |
@pano9000 , did you rebuild the native dependencies? Try |
@eightysixed , here's the documentation on how to edit the documentation: https://github.com/TriliumNext/Notes/blob/develop/docs/Developer%20Guide/Developer%20Guide/Documentation.md Since you are not modifying the structure, it's feasible for you to modify the Markdown document directly. More complex changes require |
I'm glad I looked into this, actually. The only reason I was holding back on 22 was because of umami-software/umami. That was bumped to 22 two months ago. Thanks for looking into this regardless! Thanks for the documentation on the documentation :) I found that earlier. I'll give it a shot on a dev server that's using 20 just to test what I was already asking, but ultimately land on 22 anyway. I'll leave this open for the weekend :) |
Okay, good news! (And bad, maybe?) TriliumNext does, indeed, work fine on Node v20! And obviously it works fine on Node v22. However, some of the warnings from the dependencies are worth a second glance.
Same thing on 20, but it works, so that's the neat part. I'm sure I won't be the last person to wonder, so I'll make sure it gets reflected. And then obviously remove it once that's no longer the case. The two of main concern I think wold be I've been using TriliumNext for awhile now, but finishing a migration this weekend. Good news is, the original question is answered. Built for 22, works on 20. TriliumNext seems update often, so I'll slowly chip away at some of the docs when I can/where necessary. So the main question I suppose, I answered just by giving it a shot, so now we all know and I'll make sure to update the docs. What about the memory leak dependency? I understand deprecated packages and warns, but that one may need a second glance, possibly. And the the others, curiously? Does the ML comment warrant its own PR? Anyway, TriliumNext does work on Node 20. I'll leave this open for advisement/comment on the above. |
Just to be clear this is directly from edit: Nevermind - #624 I'm not sure I've seen a Sticky on Github before. Cheers. Alright, fair enough. I'll wait until tomorrow to close or an acknowledgment. Thanks! edit2: https://developer.mend.io//github/TriliumNext/Notes - This seems to be broken, so I guess the dependency question still remains :) |
most of these warnings come from "transitive dependencies", which are a bit out of our direct control. I did just push a commit that will get rid of the "asar" warning though :-) |
It's actually not broken, but it requires authentication using GitHub. Not sure if the dashboard is publicly accessible, or only to members of the org. Either way, the content is the same as the dashborad in #624. |
Sounds good! |
I am migrating over to TriliumNext and figured I might as well roll with a manual server install. I wanted to double check the node version, but in the (what seems to be) outdated documentation mentions 14 and 16 only being supported and tested. I was hoping it'd be compatible with at least v20. I don't need anything past thing, I wouldn't think, yet?
Basically, on a brand new server install what version of Node is recommended for TriliumNext, and where should I go put in a PR to make it known? :)
The text was updated successfully, but these errors were encountered: