Schniz / fnm
- пятница, 25 января 2019 г. в 00:16:18
OCaml
🚀 Fast and simple Node.js version manager, built in ReasonML
fnm
)
🚀 Fast and simple Node.js version manager, built in ReasonML
.nvmrc
files
Download the latest release binary for your system
Make it available globally on $PATH
Add the following line to your .bashrc
/.zshrc
file:
eval `fnm env`
curl | bash
?)10
would infer the latest minor and patch versions of node 10. 10.1
would infer the latest patch version of node 10.1fnm use --install
, fnm use --quiet
fnm install lts
?fnm alias
?/tmp
directorycurl
usage with cohttp
/ocurl
or something else which is statically-linkabletar
with a statically linked library too (for ungzip + untar)PRs welcome
npm install -g esy
git clone https://github.com/Schniz/fnm.git
esy install
esy build
After building the project, you can run the main binary that is produced.
esy x fnm.exe
# Runs some smoke-unity test
esy test
# Runs the feature tests
feature_tests/run.sh