LoginSignup
29
27

More than 5 years have passed since last update.

CentOSにnodebrewをインストールする

Posted at

CentOSにnodebrewをインストールする

CentOSにnodebrewをインストールする方法を記します。

nodebrewをダウンロードする

download_nodebrew
# 証明書のエラーが出る場合は --no-check-certificateオプションを付ける
wget git.io/nodebrew

nodebrewをインストールする

install_nodebrew
perl nodebrew setup

:star: インストールが完了すると、~/.nodebrew/ ができています :star:

pathを通して、.bashrc/.zshrcを読みなおす

path
export PATH=$HOME/.nodebrew/current/bin:$PATH
source ~/.bashrc #zsh使ってる人は source ~/.zshrc

nodebrew動作確認

check_nodebrew_help
nodebrew help

nodebrewのヘルプが表示されればインストール完了です :thumbsup:

nodebrew 0.7.4

Usage:
    nodebrew help                         Show this message
    nodebrew install <version>            Download and install a <version> (compile from source)
    nodebrew install-binary <version>     Download and install a <version> (binary file)
    nodebrew uninstall <version>          Uninstall a 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> <version>        Set alias to version
    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> specified <version>

Example:
    nodebrew install v0.10.22     Install a specific version number
    nodebrew use v0.10.22         Use a specific version number
29
27
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
29
27