nodebrew
$ brew install nodebrew
$ mkdir -p .nodebrew/src
フォルダが必要 なにそれ.icon
$ nodebrew ls-remote
$ nodebrew install latest
$ nodebrew use v18.8.0
$ nodebrew help
nodebrew 1.2.0
Usage:
nodebrew help Show this message
nodebrew install <version> Download and install <version> (from binary)
nodebrew compile <version> Download and install <version> (from source)
nodebrew install-binary <version> Alias of install (For backward compatibility)
nodebrew uninstall <version> Uninstall <version>
nodebrew use <version> Use <version>
nodebrew list List installed versions
nodebrew ls Alias for list
nodebrew ls-remote List remote versions
nodebrew ls-all List remote and installed versions
nodebrew alias <key> <value> Set alias
nodebrew unalias <key> Remove alias
nodebrew clean <version> | all Remove source file
nodebrew selfupdate Update nodebrew
nodebrew migrate-package <version> Install global NPM packages contained in <version> to current version
nodebrew exec <version> -- <command> Execute <command> using specified <version>
nodebrew prune --dry-run Uninstall old versions, keeping the latest version for each major version Example:
# install
nodebrew install v8.9.4
# use a specific version number
nodebrew use v8.9.4
MacOS.icon
Node.js.icon
Homebrew.icon