/nodenv-installer

Installer and doctor scripts for nodenv

Primary LanguageShell

nodenv installer & doctor scripts

nodenv-installer

The nodenv-installer script idempotently installs or updates nodenv on your system. If Homebrew is detected, installation will proceed using brew install/upgrade. Otherwise, nodenv is installed under ~/.nodenv.

Additionally, node-build is also installed if nodenv install is not already available.

# with curl
curl -fsSL https://raw.githubusercontent.com/nodenv/nodenv-installer/master/bin/nodenv-installer | bash

# alternatively, with wget
wget -q https://raw.githubusercontent.com/nodenv/nodenv-installer/master/bin/nodenv-installer -O- | bash

# with npx/npm
npx @nodenv/nodenv-installer

nodenv-doctor

After the installation, a separate nodenv-doctor script is run to verify the success of the installation and to detect common issues. You can run nodenv-doctor on your machine separately to verify the state of your install:

# with curl
curl -fsSL https://raw.githubusercontent.com/nodenv/nodenv-installer/master/bin/nodenv-doctor | bash

# alternatively, with wget
wget -q https://raw.githubusercontent.com/nodenv/nodenv-installer/master/bin/nodenv-doctor -O- | bash

# with npx/npm
npx -p @nodenv/nodenv-installer nodenv-doctor

Credits

Forked from Mislav Marohnić's rbenv-installer and modified for node.