Skip to content

Commit

Permalink
Lovely text improvements from @ljharb
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil Sturgeon authored and mcaskill committed May 14, 2024
1 parent 03653f2 commit d25505a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -568,11 +568,13 @@ The contents of a `.nvmrc` file **must** be the `<version>` (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

Expand Down

0 comments on commit d25505a

Please sign in to comment.