Can I run Mojo on my computer directly, like Node.js or Go, without installing modules into any folder? I want to install Mojo globally on my computer, but I think the Mojo CLI isn’t working, and the documentation shows me installing modules directly into a folder and then running Mojo.
For example;
I can run go init and compile main.go with go build. However, since I can’t do a global installation in Mojo, I have to add modular with Pixi in every folder. Is there no way to globalize this? It would also save memory in multi-project setups.
I believe in both cases, you’ll end up with a mojo command that you can use system-wide.
However, there still can be advantages in maintaining local project environments to lock specific Mojo versions, dependencies, etc. Also, when it comes to disk space usage, I know Pixi does what it can to cache downloaded packages and hard-link reused binaries.
(Edit: ha, looks like Ehsan and I collided on this.)