{"id":13474297,"url":"https://github.com/hokaccha/nodebrew","last_synced_at":"2025-05-15T15:03:41.253Z","repository":{"id":1852013,"uuid":"2776765","full_name":"hokaccha/nodebrew","owner":"hokaccha","description":"Node.js version manager","archived":false,"fork":false,"pushed_at":"2022-03-19T04:27:49.000Z","size":222,"stargazers_count":1061,"open_issues_count":18,"forks_count":66,"subscribers_count":39,"default_branch":"master","last_synced_at":"2025-03-31T16:13:24.307Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"cloudfoundry/docs-bosh","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hokaccha.png","metadata":{"files":{"readme":"README.md","changelog":"History.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"hokaccha"}},"created_at":"2011-11-15T00:58:14.000Z","updated_at":"2025-03-19T00:29:18.000Z","dependencies_parsed_at":"2022-07-06T22:03:13.522Z","dependency_job_id":null,"html_url":"https://github.com/hokaccha/nodebrew","commit_stats":null,"previous_names":[],"tags_count":38,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hokaccha%2Fnodebrew","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hokaccha%2Fnodebrew/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hokaccha%2Fnodebrew/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hokaccha%2Fnodebrew/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hokaccha","download_url":"https://codeload.github.com/hokaccha/nodebrew/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247694875,"owners_count":20980733,"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":[],"created_at":"2024-07-31T16:01:11.192Z","updated_at":"2025-04-07T17:06:45.504Z","avatar_url":"https://github.com/hokaccha.png","language":"Perl","readme":"# nodebrew\n\n[![Build Status](https://travis-ci.org/hokaccha/nodebrew.svg?branch=master)](https://travis-ci.org/hokaccha/nodebrew)\n\nNode.js version manager.\n\n## Install\n\nInstall with curl.\n\n```bash\n$ curl -L git.io/nodebrew | perl - setup\n```\n\nOr, download and setup.\n\n```bash\n$ wget git.io/nodebrew\n$ perl nodebrew setup\n```\n\nAdd `PATH` setting your shell config file (`.bashrc` or `.zshrc`).\n\n```\nexport PATH=$HOME/.nodebrew/current/bin:$PATH\n```\n\nReload config.\n\n```bash\n$ source ~/.bashrc\n```\n\nConfirm.\n\n```bash\n$ nodebrew help\n```\n\n`NODEBREW_ROOT` (which indicates nodebrew's home directory) is configurable.\nIf you want to install nodebrew manually, please configure such as follows.\n\n```\nexport NODEBREW_ROOT=/path/to/.nodebrew\n```\n\nThe default value is `$HOME/.nodebrew`.\n\n## Usage\n\n### `nodebrew install \u003cversion\u003e`\n\nInstall Node.js.\n\n```bash\n$ nodebrew install v8.9.4\n\n# or\n$ nodebrew install latest # latest version\n$ nodebrew install stable # stable version\n$ nodebrew install v8.9   # v8.9 latest\n$ nodebrew install 8.9.4  # without `v`\n```\n\n### `nodebrew compile \u003cversion\u003e`\n\nIf you want to compile from source, you can use `compile` command.\n\n```bash\n$ nodebrew compile v8.9.4\n```\n\nPass configure options to Node.js.\n\n```bash\n$ nodebrew compile v8.9.4 --v8-options=--harmony\n```\n\n### `nodebrew use \u003cversion\u003e`\n\nSwitch a version to use.\n\n```bash\n$ nodebrew use v8.9.4\n$ node -v\nv8.9.4\n\n# or\n$ nodebrew use latest # latest version\n$ nodebrew use stable # stable version\n$ nodebrew use v8.9   # v8.9 latest\n$ nodebrew use 8.9.4  # without `v`\n```\n\n### `nodebrew ls` or `nodebrew list`\n\nList all installed versions.\n\n```bash\n$ nodebrew ls\nv8.9.9\nv8.9.4\n\ncurrent: v8.9.4\n```\n\n### `nodebrew ls-remote`\n\nList remote versions.\n\n```bash\n$ nodebrew ls-remote\nv0.0.1    v0.0.2    v0.0.3    v0.0.4    v0.0.5    v0.0.6\n...\n```\n\n### `nodebrew ls-all`\n\nList installed and remote versions.\n\n```bash\n$ nodebrew ls-all\nRemote:\nv0.0.1    v0.0.2    v0.0.3    v0.0.4    v0.0.5    v0.0.6\n...\n\nLocal:\nv8.9.0\nv8.9.4\n\ncurrent: v8.9.4\n```\n\n### `nodebrew alias`\n\nSet alias.\n\n```bash\n$ nodebrew alias default v8.9.4\ndefault -\u003e v8.9.4\n\n$ nodebrew use default\nuse v8.9.4\n\n$ nodebrew unalias default\nremove default\n```\n\n### `nodebrew uninstall \u003cversion\u003e`\n\nUninstall Node.js.\n\n```bash\n$ nodebrew uninstall v8.9.4\nv8.9.4 uninstalled\n```\n\n### `nodebrew selfupdate`\n\nUpdate nodebrew itself.\n\n```bash\n$ nodebrew selfupdate\n```\n\n### `nodebrew exec \u003cversion\u003e`\n\nExecute other version temporary.\n\n```bash\n$ nodebrew exec v8.9.4 -- node app.js\n```\n\n## All commands\n\n```bash\n$ nodebrew help                         Show this message\n$ nodebrew install \u003cversion\u003e            Download and install \u003cversion\u003e (from binary)\n$ nodebrew compile \u003cversion\u003e            Download and install \u003cversion\u003e (from source)\n$ nodebrew install-binary \u003cversion\u003e     Alias of `install` (For backward compatibility)\n$ nodebrew uninstall \u003cversion\u003e          Uninstall \u003cversion\u003e\n$ nodebrew use \u003cversion\u003e                Use \u003cversion\u003e\n$ nodebrew list                         List installed versions\n$ nodebrew ls                           Alias for `list`\n$ nodebrew ls-remote                    List remote versions\n$ nodebrew ls-all                       List remote and installed versions\n$ nodebrew alias \u003ckey\u003e \u003cvalue\u003e          Set alias\n$ nodebrew unalias \u003ckey\u003e                Remove alias\n$ nodebrew clean \u003cversion\u003e | all        Remove source file\n$ nodebrew selfupdate                   Update nodebrew\n$ nodebrew migrate-package \u003cversion\u003e    Install global NPM packages contained in \u003cversion\u003e to current version\n$ nodebrew exec \u003cversion\u003e -- \u003ccommand\u003e  Execute \u003ccommand\u003e using specified \u003cversion\u003e\n$ nodebrew prune [--dry-run]            Uninstall old versions, keeping the latest version for each major version\n```\n\n## Uninstall nodebrew\n\n```\n$ rm -rf $HOME/.nodebrew\n```\n\nThat's all.\n\n## Development\n\nInstall dependencies for testing.\n\n```bash\n$ carton install\n```\n\nRun test.\n\n```bash\n$ carton exec -- prove -lvr\n```\n\n## License\n\nMIT © [Kazuhito Hokamura](https://github.com/hokaccha)\n","funding_links":["https://github.com/sponsors/hokaccha"],"categories":["Perl","List of \\*env-, ch\\*- and \\*vm- style version managers","Version Managers"],"sub_categories":["Node.js"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhokaccha%2Fnodebrew","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhokaccha%2Fnodebrew","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhokaccha%2Fnodebrew/lists"}