https://github.com/jonboydell/nman
Node version manager for *nix
https://github.com/jonboydell/nman
Last synced: about 1 year ago
JSON representation
Node version manager for *nix
- Host: GitHub
- URL: https://github.com/jonboydell/nman
- Owner: jonboydell
- Created: 2015-04-27T16:18:18.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2017-08-30T12:33:16.000Z (almost 9 years ago)
- Last Synced: 2025-02-03T03:35:55.473Z (over 1 year ago)
- Language: Shell
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Lightweight NodeJS Version Manager for UNIX systems
--
Lets you quickly switch between node versions, list all existing version and remove ones that you don't want any more
Requires:
One of `wget` or `curl` (and the Perl module `HTML::TreeBuilder` if you want to use `nman_list` command - `cpan install HTML::TreeBuilder`).
For OSX, you'll need the xcode command line tools (so that you get `gcc`, `g++`` and `make`), for Linux, you'll need `gcc`, `g++`` and `make` (on Ubuntu, you can `sudo apt-get install gcc, g++, make`). Additionally, if you're using OSX and you'd rather use `wget` than `curl` then you're best off installing `homebrew` and then using that to install `wget` (building it from source on OSX is a pain in the arse).
To use:
`curl -O https://raw.githubusercontent.com/jonboydell/nman/master/node-manager.sh; source node-manager.sh;`
To add functions from `node-manager.sh` permanently:
1. Copy the `node-manager.sh` file somewhere useful
2. Add `source /node-manager.sh` into your `.profile` (in your $HOME directory)
2. Add `nman-switch-active` into your .profile too
Commands:
* `nman-switch ` - Switches to a new version of NodeJS (Downloads and installs it, if necessary
* `nman-remove ` - Permanently removes an installed version of NodeJS
* `nman-list` - List of all available versions
* `nman-installed` - List of all installed versions
Issues:
1. node js PATH isn't persisted across user sessions, you have to run `nman-switch ` for each session.
2. `nman-switch ` works, but also shows an warning/error that can be ignored but needs to be removed.