LinuxCommandLibrary

nodenv

A tool to manage NodeJS versions.

TLDR

Install a specific version of Node.js

$ nodenv install [version]
copy


Display a list of available versions
$ nodenv install --list
copy


Use a specific version of Node.js across the whole system
$ nodenv global [version]
copy


Use a specific version of Node.js with a directory
$ nodenv local [version]
copy


Display the Node.js version for the current directory
$ nodenv version
copy


Display the location of a Node.js installed command (e.g. npm)
$ nodenv which [command]
copy

Copied to clipboard