Fast Node Manager (fnm) Essential Commands

Fast Node Manager (fnm) allows to install and manage node runtime in a simple way.

### Install fnm on Mac

    brew install fnm

### Upgrade existing fnm on Mac

    brew upgrade fnm

### Shell setup on Mac with zsh / bash

For zsh, add the following to your .zshrc profile

    eval "$(fnm env --use-on-cd --shell zsh)"

or

For bash, Add the following to your .bashrc profile

    eval "$(fnm env --use-on-cd --shell bash)"

### List all available versions to install

    fnm list-remote

### List only LTS versions to install

    fnm list-remote --lts

### List all local installed versions


    fnm list

### List the current default version

    fnm default

### Install a node version

    fnm install v24.22.1

### Set version of node for current shell

    fnm use v22.23.4

### Set default version of node for all shells

    fnm default v22.23.4

### See the current version of node in the shell

    fnm current

### Uninstall a node version

    fnm uninstall v22.23.4

Comments

Popular posts from this blog

Export/Backup Ollama Model

Download and run Hugging Face AI models in Ollama

UTM - Run Windows Virtual Machine on Mac