HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

fnm — Fast Node.js version manager. More information: <https://github.com/Schniz/fnm/blob/master/docs/comm

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandnodeclifastmoreversionfnmmanager

Problem

How to use the fnm command: Fast Node.js version manager. More information: <https://github.com/Schniz/fnm/blob/master/docs/commands.md>.

Solution

fnm — Fast Node.js version manager. More information: <https://github.com/Schniz/fnm/blob/master/docs/commands.md>.

Install a specific version of Node.js:
fnm {{[i|install]}} {{node_version}}


Install Node.js LTS:
fnm {{[i|install]}} --lts


List all available Node.js versions and highlight the default one:
fnm {{[ls|list]}}


Use a specific version of Node.js in the current shell:
fnm use {{node_version}}


Set the default Node.js version:
fnm default {{node_version}}


Uninstall a given Node.js version:
fnm {{[uni|uninstall]}} {{node_version}}

Code Snippets

Install a specific version of Node.js

fnm {{[i|install]}} {{node_version}}

Install Node.js LTS

fnm {{[i|install]}} --lts

List all available Node.js versions and highlight the default one

fnm {{[ls|list]}}

Use a specific version of Node.js in the current shell

fnm use {{node_version}}

Set the default Node.js version

fnm default {{node_version}}

Context

tldr-pages: common/fnm

Revisions (0)

No revisions yet.