Neonox31 / fnm

node.js version manager for fish

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fnm

Build Status

✋ Psst! We're currently rewriting fnm—please subscribe to issues/#75 for and news & details.

Fnm is a node version manager using ideas from tj/n, wbyoung/avn and creationix/nvm for the fish-shell.

Features

  • No sudo

  • No configuration

  • Cached downloads

  • Automatic version switching

Install

With Fisher

fisher add jorgebucaran/fnm

Usage

Use node 5.5.0.

fnm 5.5.0
node -v
v5.5.0

Use a .fnmrc file.

echo 5.10.1 > .fnmrc
node -v
v5.10.1

Use the latest stable node release.

fnm latest

Use the latest LTS (long-term support) node release.

fnm lts

Select a version interactively.

fnm
  5.5.0
  5.10.0
• 5.10.1

List all versions available for download.

fnm ls
  ...
- 5.5.0   # downloaded
  5.6.0
  ...
  5.9.1
- 5.10.0  # downloaded
• 5.10.1  # active version

Remove a version.

fnm rm 5.5.0

Customize the download mirror.

set -U fnm_mirror http://npm.taobao.org/mirrors/node

License

Fnm is MIT licensed. See the LICENSE for details.

About

node.js version manager for fish


Languages

Language:Shell 100.0%