{"id":30878458,"url":"https://github.com/nodenv/nodenv-nvmrc","last_synced_at":"2025-09-08T05:10:19.912Z","repository":{"id":79385552,"uuid":"118102865","full_name":"nodenv/nodenv-nvmrc","owner":"nodenv","description":"nodenv plugin that detects the node version based on .nvmrc.","archived":false,"fork":false,"pushed_at":"2025-08-28T12:58:41.000Z","size":49,"stargazers_count":40,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-28T20:22:49.399Z","etag":null,"topics":["node","nodejs","nodenv","nodenv-plugin","nvm","nvmrc","version-manager"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nodenv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2018-01-19T09:09:01.000Z","updated_at":"2025-08-28T12:58:32.000Z","dependencies_parsed_at":"2025-08-11T14:32:28.814Z","dependency_job_id":"2c37c996-c260-4b4d-adb1-fe4346621d9d","html_url":"https://github.com/nodenv/nodenv-nvmrc","commit_stats":null,"previous_names":["nodenv/nodenv-nvmrc"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/nodenv/nodenv-nvmrc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodenv%2Fnodenv-nvmrc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodenv%2Fnodenv-nvmrc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodenv%2Fnodenv-nvmrc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodenv%2Fnodenv-nvmrc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nodenv","download_url":"https://codeload.github.com/nodenv/nodenv-nvmrc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodenv%2Fnodenv-nvmrc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274135710,"owners_count":25228209,"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","status":"online","status_checked_at":"2025-09-08T02:00:09.813Z","response_time":121,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["node","nodejs","nodenv","nodenv-plugin","nvm","nvmrc","version-manager"],"created_at":"2025-09-08T05:10:18.791Z","updated_at":"2025-09-08T05:10:19.902Z","avatar_url":"https://github.com/nodenv.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nodenv-nvmrc\n\nA [nodenv][] plugin to activate Node version from `.nvmrc`.\n\n[![Tests](https://img.shields.io/github/actions/workflow/status/nodenv/nodenv-nvmrc/test.yml?label=tests\u0026logo=github)](https://github.com/nodenv/nodenv-nvmrc/actions/workflows/test.yml)\n[![Latest GitHub Release](https://img.shields.io/github/v/release/nodenv/nodenv-nvmrc?label=github\u0026logo=github\u0026sort=semver)](https://github.com/nodenv/nodenv-nvmrc/releases/latest)\n[![Latest Homebrew Release](\u003chttps://img.shields.io/badge/dynamic/regex?label=homebrew-nodenv\u0026logo=homebrew\u0026logoColor=white\u0026url=https%3A%2F%2Fraw.githubusercontent.com%2Fnodenv%2Fhomebrew-nodenv%2Frefs%2Fheads%2Fmain%2FFormula%2Fnodenv-nvmrc.rb\u0026search=archive%2Frefs%2Ftags%2Fv(%3F%3Cversion%3E%5Cd%2B.*).tar.gz\u0026replace=v%24%3Cversion%3E\u003e)](https://github.com/nodenv/homebrew-nodenv/blob/main/Formula/nodenv-nvmrc.rb)\n[![Latest npm Release](https://img.shields.io/npm/v/@nodenv/nodenv-nvmrc?logo=npm\u0026logoColor=white)](https://www.npmjs.com/package/@nodenv/nodenv-nvmrc/v/latest)\n\nThis is a plugin for [nodenv](https://github.com/nodenv/nodenv)\nthat detects the node version based on the current tree's .nvmrc. `.node-version` files still take precedence.\n\nWhen .nvmrc is configured with a range this plugin chooses the greatest installed version matching the range or exits with an error if none match.\n\n## Installation\n\n### Installing with git\n\n```sh\n$ git clone https://github.com/nodenv/nodenv-nvmrc.git $(nodenv root)/plugins/nodenv-nvmrc\n```\n\n### Installing with Homebrew\n\nMac OS X users can install [many nodenv plugins](https://github.com/nodenv/homebrew-nodenv) with [Homebrew](http://brew.sh).\n\n*This is the recommended method of installation if you installed nodenv with\nHomebrew.*\n\n```sh\n$ brew tap nodenv/nodenv\n$ brew install nodenv-nvmrc\n```\n\n## Usage\n\nOnce you've installed the plugin you can verify that it's working by `cd`ing into a project that has a `.nvmrc` file and does not have a `.node-version` file.  From anywhere in the project's tree, run `nodenv which node`.\n\n## Gotcha\n\nDue to the limitaion of nodenv's plugin system, some commands were not reading the version from `.nvmrc`.\n- `nodenv install` without version is not able to install new Node version specified in `.nvmrc`.\n- `nodenv local` without version is not able to retrieve the version specified in `.nvmrc`\n\n## Contributing\n\nTo run tests, install [bats](https://github.com/sstephenson/bats) and [nodenv](https://github.com/nodenv/nodenv), then run `bats test`  in the base directory of this plugin\n\n## Credits\n\nThis project is heavily inspired by nodenv-package-json-engine[[1]](https://github.com/nodenv/nodenv-package-json-engine).\n\nShell semver range support provided by [sh-semver](https://github.com/qzb/sh-semver).\n\n[nodenv]: https://github.com/nodenv/nodenv\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnodenv%2Fnodenv-nvmrc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnodenv%2Fnodenv-nvmrc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnodenv%2Fnodenv-nvmrc/lists"}