Browse Source

[Documentation] Adds Additional info regarding .node-version (#637)

remotes/origin/feat/support-install-latest
Malolan B 3 years ago committed by GitHub
parent
commit
bc9e4e6cae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      README.md

8
README.md

@ -121,6 +121,14 @@ Please follow your shell instructions to install them.
Environment variables need to be setup before you can start using fnm. Environment variables need to be setup before you can start using fnm.
This is done by evaluating the output of `fnm env`. This is done by evaluating the output of `fnm env`.
To automatically run `fnm use` when a directory contains a `.node-version` or `.nvmrc` file, add the `--use-on-cd` option to your shell setup. To automatically run `fnm use` when a directory contains a `.node-version` or `.nvmrc` file, add the `--use-on-cd` option to your shell setup.
Adding a `.node-version` to your project is as simple as:
```bash
$ node --version
v14.18.3
$ node --version > .node-version
```
Check out the following guides for the shell you use: Check out the following guides for the shell you use:
#### Bash #### Bash

Loading…
Cancel
Save