{"id":15209416,"url":"https://github.com/prantlf/nodeup","last_synced_at":"2026-02-06T07:32:11.254Z","repository":{"id":253669998,"uuid":"843919922","full_name":"prantlf/nodeup","owner":"prantlf","description":"Upgrades to the latest version of Node, or manages more versions of Node on the same machine, supporting all platforms including RISC-V, as simple es rustup.","archived":false,"fork":false,"pushed_at":"2024-11-10T08:39:14.000Z","size":140,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-02T01:51:15.665Z","etag":null,"topics":["bash","install","node","node-js","nodejs","nvm","shell","version","version-manager","zsh"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/prantlf.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-17T20:20:42.000Z","updated_at":"2024-11-10T08:39:18.000Z","dependencies_parsed_at":"2024-11-10T09:23:03.450Z","dependency_job_id":"c447656c-a292-4758-a44c-b4cd2d01a9c1","html_url":"https://github.com/prantlf/nodeup","commit_stats":{"total_commits":3,"total_committers":2,"mean_commits":1.5,"dds":"0.33333333333333337","last_synced_commit":"c329647e0863cb1da6c069d6b7646576d98c39ea"},"previous_names":["prantlf/nodeup"],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prantlf%2Fnodeup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prantlf%2Fnodeup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prantlf%2Fnodeup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prantlf%2Fnodeup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prantlf","download_url":"https://codeload.github.com/prantlf/nodeup/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238840721,"owners_count":19539602,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash","install","node","node-js","nodejs","nvm","shell","version","version-manager","zsh"],"created_at":"2024-09-28T07:23:33.009Z","updated_at":"2026-02-06T07:32:11.238Z","avatar_url":"https://github.com/prantlf.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Node Upgrader and Version Manager\n\nUpgrades to the latest version of Node, or manages more versions of Node on the same machine, supporting all platforms including RISC-V, as simple es `rustup`.\n\n* Small. Written in `bash`, easily extensible.\n* Fast. Downloads and unpacks pre-built binary builds.\n* Portable. Writes only to the user home directory.\n* Simple. Switches the version globally, no environment variable changes needed.\n* Efficient. Just run `nodeup up`.\n\nPlatforms: `aix-ppc64`, `darwin-x64`, `darwin-arm64`, `linux-x64`, `linux-x86`, `linux-x64-musl`, `linux-arm64`, `linux-armv6l`, `linux-armv7l`, `linux-loong64`, `linux-ppc64le`, `linux-riscv64`, `linux-s390x`, `windows-x86`, `windows-x64`, `windows-arm64`.\n\n## Getting Started\n\nMake sure that you have `bash` 4 or newer and `curl` available, execute the following command:\n\n    curl -fSs https://raw.githubusercontent.com/prantlf/nodeup/master/install.sh | bash\n\nInstall the latest LTS version of Node, if it hasn't been installed yet:\n\n    nodeup install lts\n\nBefore you continue, make sure that you have the following tools available: `curl`, `grep`, `jq`, `ln`, `rm`, `rmdir`, `sed`, `tar` (non-Windows), `uname`, `unxz` (non-Windows), `unzip` (Windows). It's likely that `jq` will be missing. You can install it like this on Debian: `apt-get install -y jq`.\n\nUpgrade both the installer script and the Node language (to the latest LTS version), if they're not up-to-date, and delete the previously active latest LTS version from the disk too:\n\n    nodeup up lts\n\nIf you specify `latest` instead of `'lts`, the latest non-LTS version will apply. The latest LTS version is 24.\n\n## Installation\n\nMake sure that you have `bash` 4 or newer and `curl` available, execute the following command:\n\n    curl -fSs https://raw.githubusercontent.com/prantlf/nodeup/master/install.sh | bash\n\nBoth the `nodeup` and `node` should be executable in any directory via the `PATH` environment variable. The installer script will modify the RC-file of the shell, from which you launched it. The following RC-files are supported:\n\n    ~/.bashrc\n    ~/.zshrc\n    ~/.config/fish/config.fish\n\nIf you use other shell or more shells, update the other RC-files by putting both the installer directory and the Node binary directory to `PATH`, for example:\n\n    $HOME/.nodeup:$HOME/.node/bin:$PATH\n\nStart a new shell after the installer finishes. Or extend the `PATH` in the current shell as the instructions on the console will tell you.\n\n## Locations\n\n| Path        | Description                                              |\n|:------------|:---------------------------------------------------------|\n| `~/.nodeup` | directory with the installer script and versions of Node |\n| `~/.node`   | symbolic link to the currently active version of Node    |\n\nFor example, with the Node 20.16.0 activated:\n\n    /home/prantlf/.nodeup\n      ├── 20.16.0  (linked to /home/prantlf/.node)\n      ├── 22.6.0   (another version)\n      └── nodeup   (installer script)\n\n## Usage\n\n    nodeup \u003ctask\u003e [version]\n\n    Tasks:\n\n      current              print the currently selected version of Node\n      latest               print the latest version of Node for download\n      local                print versions of Node ready to be selected\n      remote               print versions of Node available for download\n      update               update this tool to the latest version\n      upgrade              upgrade Node to the latest and remove the current version\n      up                   perform both update and upgrade tasks\n      install \u003cversion\u003e    add the specified or the latest version of Node\n      uninstall \u003cversion\u003e  remove the specified version of Node\n      use \u003cversion\u003e        use the specified or the latest version of Node\n      help                 print usage instructions for this tool\n      version              print the version of this tool\n\nYou can enter just `MAJ` or `MAJ.MIN` as `\u003cversion\u003e`, instead of the full `MAJ.MIN.PAT`. When using the `install` or `use` tasks, the *most* recent full version that starts by the entered partial version will be picked. When using the `uninstall` task, the *least* recent full version that starts by the entered partial version will be picked.\n\n## Debugging\n\nIf you enable `bash` debugging, every line of the script will be printed on the console. You'll be able to see values of local variables and follow the script execution:\n\n    bash -x nodeup ...\n\nYou can debug the installer too:\n\n    curl -fSs https://raw.githubusercontent.com/prantlf/nodeup/master/install.sh | bash -x\n\n## Platform Detection\n\n### Environment Variables\n\nThe following environment variables can be set before running `install.sh` or `nodeup`, if you know what you're doing:\n\n| Variable       | Default value                 |\n|:---------------|:------------------------------|\n| `PLATFORM`     | detected using `uname`        |\n| `OS`           | part of `PLATFORM` before `-` |\n| `ARCH`         | part of `PLATFORM` after `-`  |\n| `TOOL_URL_DIR` | https://nodejs.org/download/release or https://unofficial-builds.nodejs.org/download/release for platforms `linux-x86`, `linux-armv6l`, `linux-loong64`, `linux-riscv64` |\n| `INST_DIR`     | `$HOME/.nodeup`               |\n| `TOOL_DIR`     | `$HOME/.node`                 |\n\n### ARM Architectures\n\nThe detection of the architecture ARM v6 and v7 may not work in your environment. For example, `uname -m` in Debian reports:\n\n| Architecture | Output   |\n|:-------------|:---------|\n| ARM v6       | `armhf`  |\n| ARM v7       | `armhf`  |\n| ARM v8       | `arm64`  |\n\nWhile, `uname -m` in Raspbian reports:\n\n| Architecture | Output    |\n|:-------------|:----------|\n| ARM v6       | `armhf`   |\n| ARM v7       | `armv7l`  |\n| ARM v8       | `aarch64` |\n\n`nodeup` regognises `armhf` as ARM v6. If you use it on Debian and ARM v7, enforce the proper architecture by setting the environment variable `ARCH` explicitly:\n\n    ARCH=armv7l nodeup ...\n\nIf you don't do it, the `node` executable will work well nevertheless, because binaries for ARM v6 can be run on ARM v7. Just the performance of floating point computations may be lower.\n\nIf `uname` reports other value than `armhf`, the platform recognition will work well. Pay attention to the console output, in particular to this line:\n\n    detected platform linux-armv6l\n\n## Contributing\n\nIn lieu of a formal styleguide, take care to maintain the existing coding style. Lint and test your code.\n\n## License\n\nCopyright (c) 2024-2025 Ferdinand Prantl\n\nLicensed under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprantlf%2Fnodeup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprantlf%2Fnodeup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprantlf%2Fnodeup/lists"}