Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
27
Help us understand the problem. What is going on with this article?
@kentana20

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

More than 5 years have passed since last update.

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
27
Help us understand the problem. What is going on with this article?
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
kentana20
LiverpoolFCを愛するエンジニア。 株式会社一休で宿泊サイト「一休.com」の開発・運用をやってます。
ikyu
「こころに贅沢を」をコンセプトに一休.com、一休レストランなどのサービスを提供しています。

Comments

No comments
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account Login
27
Help us understand the problem. What is going on with this article?