Skip to content

Commit d25505a

Browse files
Phil Sturgeonmcaskill
Phil Sturgeon
authored andcommitted
Lovely text improvements from @ljharb
1 parent 03653f2 commit d25505a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -568,11 +568,13 @@ The contents of a `.nvmrc` file **must** be the `<version>` (as described by `nv
568568

569569
### .node-version
570570

571-
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.
571+
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.
572572

573+
```
573574
$ echo "5.9" > .node-version
575+
```
574576

575-
They'll be loaded after `.nvmrc`, and can contain the same values as `.nvmrc`.
577+
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).
576578

577579
### Deeper Shell Integration
578580

0 commit comments

Comments
 (0)