A Node environment manager written in rust.
You can either
- Install the application with cargo by downloading the repo and running cargo install --path .
inside
- Download the binary from the releases page
Now to initialize everything install any nodejs version with nenv install <version>
.
Afterwards add the bin
directory to your PATH
variable.
On windows this should be C:\Users\<yourusername>\AppData\Roaming\nenv\bin
.
On linux this will be ~/.local/share/nenv/bin
.
```sh
nenv install latest
nenv install lts
nenv install 14 ```
sh
nenv default latest
sh
nenv refresh
sh
nenv list-versions
The node version nenv uses is controlled by
The engines.node
config field in the package.json
which is parsed as a semver requirement.
json
{
"name": "my project",
"engines": {
"node": "18"
}
}
The .node-version
file in the current or parent directories which contains the version string.
19.4.0
The NODE_VERSION
environment variable.
nenv default
.GPL-3.0