-
node modules の アンインストール
$ npm ls # モジュールのリストを見る $ sudo npm uninstall "module name"
-
npm のアンインストール
$ sudo npm uninstall -g
-
node.js のアンインストール
$ cd
$HOME/node $ sudo make uninstallただし上手くいかなかったので $ cd
$HOME $ sudo rm -r /node -
nodebrew のインストール # 詳細は https://github.com/hokaccha/nodebrew
$ curl https://raw.github.com/hokaccha/nodebrew/master/nodebrew | perl - setup
-
nodebrew の環境設定
$ vim ~/.bash_login
exports export PATH=$HOME/.nodebrew/current/bin:$PATH $ source ~/.bash_login
-
node.js のインストール
$ nodebrew install latest # 最新の安定版のインストール $ nodebrew install stable # 最新の開発版のインストール $ nodebrew install v0.4.12 # 旧版の安定版のインストール
-
node.js のスイッチ
$ nodebrew use latest $ node -v
v0.6.14
-
npm で モジュールのインストール
ただし、use v0.4.12 した状態で $ npm しても npm のパスが無いといわれる v0.6.14 以上で $ npm install modulename module は $HOME/node_modules 以下にインストールされる
Created
April 3, 2012 12:40
-
-
Save ishiduca/2291667 to your computer and use it in GitHub Desktop.
nodebrew の導入 2012.04.03
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment