n
HomeBrew
Our great sponsors
n | HomeBrew | |
---|---|---|
50 | 1278 | |
18,433 | 38,997 | |
- | 1.6% | |
6.5 | 10.0 | |
about 1 month ago | 7 days ago | |
Shell | Ruby | |
MIT License | BSD 2-clause "Simplified" License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
n
-
Looks like npm is installed but does not work.
use n or nvm to manage installed node/npm versions.
-
How To manage Different Versions of Node in Your system
1 - n is a tool that allows you to easily switch between different versions of Node.js. Follow the official guide in case this does not work for you due to an update or need a command not highlighted below. Here's how you can use n to switch between Node.js versions:
-
Nvm or homebrew for Node install
Listing people's recommendations with links below. I'm glad I asked this question. I received a lot of good recommendations. Thanks All! * nvm (https://nvm.sh) - Simple to use and easy to follow instructions with more in-depth configuration for those that need it. Some experienced a slightly slower terminal. Supports nodjs, iojs, and node version per project/directory. * fnm (https://github.com/Schniz/fnm) - Built with speed in mind. It is like nvm, but faster. Also supports node version per project/directory. * Volta (https://volta.sh/) - Looks easy to use and has good documentation. * asdf (https://asdf-vm.com/) - Supports multiple runtimes and tools by adding plugins. Admittedly, is a bit confusing and more than I need right now (Node, Rust, Python, Ruby, etc.) * Homebrew (https://brew.sh/) - Not a version manager but can act like one by installing nvm, fnm, asdf, or others. Some additional configuration may be needed. * Proto (https://moonrepo.dev/proto) - Supports Bun, Deno, Node.js (npm, pnpm, yarn), Rust, and Go. Also good documentation. Setup looks a bit complex to me :/. * n (https://github.com/tj/n) - Supports Node and npm per project. Simple and to the point.
-
Flatpaks 🥰
I used n. It was pretty good. I still hated every time I had to change versions and the idea of making dockers for this came with a friend. Thankfully, I don't have that.project anymore
-
Linux: Best way to install node & npm
https://github.com/tj/n to install node and manage versions
-
What do use to manage your nodejs installation?
N package since I found it out. Happy for both local pc and servers.
-
Show HN: Nuño's Stupid Node Version Manager
Nice work, and good on you for taking matters into your own hands.
I did the same thing as you a few years ago, and then shortly afterwards discovered n [0], which really ought to be the go-to for managing multiple versions of Node.js in my opinion.
-
Language Version Managers - the Developer Parachutes
In the Node world, there are a few options like NVM, N, FNM, Volta, and more. I've been a longtime user of NVM, so we'll detail those instructions for use here:
-
3 Useful Node.js Version Managers
Simple as that! ## 2. n ⭐ *Github stars: 16.7K+* [n](https://github.com/tj/n) is an interactive Node.js version manager: no subshells, no profile setup, no convoluted API, just simple. ![](https://images.pingan8787.com/images/20220807/image3.gif) `n` is supported on macOS, Linux, including with Windows Subsystem for Linux, and various other unix-like systems. It is written as a BASH script but does not require you to use BASH as your command shell. ### Installation If you already have Node.js installed, an easy way to install `n` is using npm:
-
fnm: Fast and simple Node.js version manager, built in Rust
What's the benefit over something more established, like https://www.npmjs.com/package/n ?
HomeBrew
-
Tools for Linux Distro Hoppers
Hopping from one distro to another with a different package manager might require some time to adapt. Using a package manager that can be installed on most distro is one way to help you get to work faster. Flatpak is one of them; other alternative are Snap, Nix or Homebrew. Flatpak is a good starter, and if you have a bunch of free time, I suggest trying Nix.
-
SQLite Schema Diagram Generator
Are you using SQLite that ships with macOS, or SQLite installed from homebrew?
I had a different problem in the past with the SQLite that ships with macOS, and have been using SQLite from homebrew since.
So if it’s the one that comes with macOS that gives you this problem that you are having, try using SQLite from homebrew instead.
-
Perfect Elixir: Environment Setup
I’m on MacOS and erlang.org, elixir-lang.org, and postgresql.org all suggest installation via Homebrew, which is a very popular package manager for MacOS.
-
You're Installing Node.js Wrong. That's OK, Here Is How To Fix It 🙌
I have always either installed Node from the installer provided by the Nodejs website or, via Brew in macOS. I have also used nvm in the past but did not know that there was a best practice to guide us.
-
Test Driving a Rails API - Part One
A running Rails application needs a database to connect to. You may already have your database of choice installed, but if not, I recommend PostgreSQL, or Postgres for short. On a Mac, probably the easiest way to install it is with Posrgres.app. Another option, the one I prefer, is to use Homebrew. With Homebrew installed, this command will install PostgreSQL version 16 along with libpq:
-
Effective Neovim Setup. A Beginner’s Guide
On a macOS machine, you can use homebrew by running the command.
-
Radicle: Open-Source, Peer-to-Peer, GitHub Alternative
This is an overreaction, almost to the point of absurdity.
Risks inherent to pipe installers are well understood by many. Using your logic, we should abandon Homebrew [1] (>38k stars on GitHub), PiHole [2] (>46k stars on GitHub), Chef [3], RVM [4], and countless other open source projects that use one-step automated installers (by piping to bash).
A more reasonable response would be to coordinate with the developers to update the docs to provide alternative installation methods, rather than throwing the baby out with the bathwater.
[1] https://brew.sh/
[2] https://github.com/pi-hole/pi-hole
[3] https://docs.chef.io/chef_install_script/#run-the-install-sc...
-
I'm confused: what's with the project descriptions at HTTPS://pkgx.dev/pkgs/?
And by supercookie, do you mean this UUID? https://github.com/Homebrew/brew/commit/57844530a94d5686029c...
-
How To Set Up Your Coding Environment
On a Mac, do not use HomeBrew to install NVM. The NVM project recommends using their script. We had a few issues using NVM installed through HomeBrew over the years — issues we did not have when using their installer script.
-
Ask HN: Trouble with a Stargate
I'm sorry to be asking this as I find it a bit silly, but it's blocking my PR [3], so could a few of you star the project on Github [1] to get my PR to run?
[1] https://github.com/laktak/chkbit-py
[2] https://brew.sh
[3] https://github.com/Homebrew/homebrew-core/pull/160018
What are some alternatives?
spack - A flexible package manager that supports multiple versions, configurations, platforms, and compilers.
asdf - Extendable version manager with support for Ruby, Node.js, Elixir, Erlang & more
Visual Studio Code - Visual Studio Code
nvm for Windows - A node.js version management utility for Windows. Ironically written in Go.
winget-cli - WinGet is the Windows Package Manager. This project includes a CLI (Command Line Interface), PowerShell modules, and a COM (Component Object Model) API (Application Programming Interface).
osxfuse - FUSE extends macOS by adding support for user space file systems
Chocolatey - Chocolatey - the package manager for Windows
fnm - 🚀 Fast and simple Node.js version manager, built in Rust
nodenv - Manage multiple NodeJS versions.
Docker-OSX - Run macOS VM in a Docker! Run near native OSX-KVM in Docker! X11 Forwarding! CI/CD for OS X Security Research! Docker mac Containers.
ohmyzsh - 🙃 A delightful community-driven (with 2,200+ contributors) framework for managing your zsh configuration. Includes 300+ optional plugins (rails, git, macOS, hub, docker, homebrew, node, php, python, etc), 140+ themes to spice up your morning, and an auto-update tool so that makes it easy to keep up with the latest updates from the community.
volta - Volta: JS Toolchains as Code. ⚡