LoginSignup
1
1

More than 5 years have passed since last update.

node-env note

Last updated at Posted at 2016-03-06

nodenv

https://github.com/nodenv/nodenv#installing-node-versions
rbenv series

install

brew!
install with node-build plugin

global installed commands not found...

nodenv rehash

build from src & compile

nodenv install vx.x.x -c
and patch
nodenv install vx.x.x -cp < patchfile

nvm

install (for all users)

Linux:

export NVM_DIR=/opt/nvm
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.0/install.sh | bash

.bashrc already edited by install script. Of cource, exec-install-script user only! To apply it, append bellow at /etc/profile or any other way.

export NVM_DIR="/opt/nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"  # This loads nvm

list available versions (remote)

nvm ls remote

Upgrade nvm

No command. Rerun install step. Preserve node.js bins that install via prev versions nvm.

Recomend: nvm use xxx or nvm alias default xxx after updgrade nvm

nodebrew

install (for all users)

Linux:
1st, edit profile. I guess, you have to set NODEBREW_ROOT @ profile, because nodebrew ref this var not only at 1st install, but also at normal operations.

export NODEBREW_ROOT=/opt/nodebrew
export PATH=/opt/nodebrew/current/bin:$PATH
. .bashrc
curl -L git.io/nodebrew | perl - setup

other ops

See it https://github.com/hokaccha/nodebrew

1
1
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
1
1