Node Version Manager in Bash script. This script doen't need root access for npm or node because they are both installed in ~/.nodem and all it's binaries and packages. Inspired by n.
This script requires the following programs to work:
- wget
- sudo
Run command on terminal:
wget -O - https://raw.githubusercontent.com/marcoT89/nodem/master/install.sh | bash
This script requires root access to create symbolic links to /usr/local/bin and /usr/bin. Thats it.
The available commands are:
install <version>
nodem install 4.4.2
use <version> --npm
nodem use 4.4.2
or with --npm to also use npm version for this node version
nodem use 4.4.2 --npm
remove <version>
nodem remove 4.4.2
available
nodem available
list
nodem list
help
nodem help
- List all available versions
- Works with Linux and Mac OS systems
- Select version from list
- Work for 32 or 64 Linux Archtectures
(The MIT License)
Copyright (c) 2016 Marco Túlio Ávila Santos marcotulio.avila@gmail.com
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.