#semver issues

15 messages ยท Page 1 of 1 (latest)

viscid meteor
#

Hi, I am trying to get started with Tauri. I used the create-tauri-app command and have everything setup but when I run npm run tauri dev, I get this error Error: Cannot find module 'semver'

Not sure how to solve it. I have tried updating node but it seems to always be at version 12. Even though the website says version 20.

I am running Ubuntu at the moment

orchid pewter
viscid meteor
#

oh so I have to remove the package first?

orchid pewter
#

Yea uninstall the current node version you have, then add nodesource, then install version 20

viscid meteor
#

great thanks, it's working now. Why does it default to such an old version?

orchid pewter
#

aptis based on repositories it can download packages from
By default you just have the base repos
If you just use them then yea, them being up to date is entirely up to how motivated the maintainers of those repos, in this case the Ubuntu maintainers, are, and for a bunch of these sorts of runtimes they really don't care much

viscid meteor
#

I see, thanks. Is Node dead in general? Replaced by stuff like Bun and Deno?

orchid pewter
#

I think for python they still have like python 3.8 or 3.9 as default, but we're on python 3.12 now. Not sure if 3.13 got released yet. But yea, they rely heavily on that if you wanna use specific versions of stuff you'll find them elsewhere, what they provide is more at the proof of concept level or "ancient utilities used by a lot of stuff use python and java and node.js so we gotta support some version so they don't stop running", they're less meant for actually using and more as dependencies of other stuff

viscid meteor
#

ah okay, maybe I made the wrong choice going with Ubuntu then ๐Ÿ˜… I recently switch to Linux from Windows. So went with the one that seemed easiest

orchid pewter
#

Like, I think Fedora might offer sliiightly easier ways for you to install dependencies, but you run into trouble elsewhere

#

Ubuntu is the biggest, if it's your first Linux distro stick with it, you're gonna need the size of the Ubuntu community to assist you in getting stuff working