Installing Fast Node Manager (fnm)

Using a node manager helps you deal with annoying npm permissions issues.

If you already use something like nvm you'll notice fnm is significantly faster.

Install

On Mac:

On Linux:

The following command will automatically install fnm using curl

If you don't already have .local/bin in your path

Upgrade

bashrc/zshrc config

Add the following to you .bashrc or .zshrc

Commands

List install candidates

Install a node version

List currently installed versions

Choose version you would like to use

Check currently active version

Alias a version

Default a version

Autocompletions

You can replace zsh with bash if you are using bash

Then add the following to your .zshrc:

Wrapping up

Versioning node should be much faster now

Link to Author

fnm


Tagged in nodejs