From bf89c7cde0cb59ff7ff3053bb5140bccfe4ee10f Mon Sep 17 00:00:00 2001 From: Phil Sturgeon Date: Tue, 10 Oct 2017 17:06:04 -0400 Subject: [PATCH] Lovely text improvements from @ljharb --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 246a8f8..88bc691 100644 --- a/README.md +++ b/README.md @@ -568,11 +568,13 @@ The contents of a `.nvmrc` file **must** be the `` (as described by `nv ### .node-version -For a little compatability with other node version managers, nvm will also sniff for `.node-version` files. They're the same as `.nmvrc`, they just share a common name. +For a little compatability with other node version managers, nvm will also sniff for `.node-version` files, defaulting to `.nvmrc` if both are found in the same folder. +``` $ echo "5.9" > .node-version +``` -They'll be loaded after `.nvmrc`, and can contain the same values as `.nvmrc`. +Unlike `.nvmrc`, `.node-version` cannot contain a "versionish" (an alias, like `node`, `iojs`, or a custom alias you’ve defined). `.node-version` can only have versions in the format of v1, v1.2, or v1.2.3 (the `v` is optional). ### Deeper Shell Integration