Skip to content
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

Add Flox #1289

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Add Flox #1289

wants to merge 1 commit into from

Conversation

bryanhonof
Copy link

@bryanhonof bryanhonof commented Jul 30, 2024

By submitting this pull request, I promise I have read the contribution guidelines twice and ensured my submission follows it. I realize not doing so wastes the maintainers' time that they could have spent making the world better. 🖖

⬆⬆⬆⬆⬆⬆⬆⬆⬆⬆

Description

site: https://flox.dev/

Flox is an environment manager and package manager all in one. It's capable of installing different versions of Node.js on the same machine, and activate them whenever a project requests a specific Node.js version.
And example of using Flox for a Node.js project could look as follows.

$ flox init
✨ Created environment 'tmp.z6TSHUBTKs' (aarch64-darwin)

Next:
  $ flox search <package>    <- Search for a package
  $ flox install <package>   <- Install a package into an environment
  $ flox activate            <- Enter the environment
  $ flox edit                <- Add environment variables and shell hooks

$ flox search nodejs
nodejs       Event-driven I/O framework for the V8 JavaScript engine
nodejs_22    Event-driven I/O framework for the V8 JavaScript engine
nodejs_21    Event-driven I/O framework for the V8 JavaScript engine
nodejs_20    Event-driven I/O framework for the V8 JavaScript engine
nodejs_18    Event-driven I/O framework for the V8 JavaScript engine
nodejs_16    Event-driven I/O framework for the V8 JavaScript engine
nodejs_14    Event-driven I/O framework for the V8 JavaScript engine
nodejs-slim  Event-driven I/O framework for the V8 JavaScript engine
nodejs-19_x  Event-driven I/O framework for the V8 JavaScript engine
nodejs-18_x  Event-driven I/O framework for the V8 JavaScript engine

Showing 10 of 54 results. Use `flox search nodejs --all` to see the full list.

Use 'flox show <package>' to see available versions

$ flox show nodejs
nodejs - Event-driven I/O framework for the V8 JavaScript engine
    [email protected]
    [email protected]
    [email protected]
    [email protected]
    [email protected]
    [email protected]
    [email protected]
    [email protected]
    [email protected]
    [email protected]
    [email protected]
    [email protected]
    [email protected]
    [email protected]
    [email protected] (aarch64-linux, x86_64-darwin, x86_64-linux only)
$ flox install [email protected]
✅ 'nodejs' installed to environment 'tmp.z6TSHUBTKs'
$ node --version
zsh: command not found: node
$ flox activate
✅ You are now using the environment 'tmp.z6TSHUBTKs'.
To stop using this environment, type 'exit'

flox [tmp.z6TSHUBTKs] $ node --version
v20.14.0
flox [tmp.z6TSHUBTKs] $

It is also capable of bringing in auxiliary tools that are necessary to run your project, but aren't necessarily part of the node ecosystem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants