우분투16 node.js 설치

Jmnote (토론 | 기여)님의 2015년 12월 15일 (화) 10:08 판 (→‎확인 2)


1 확인

root@zetawiki:~# node -v
The program 'node' can be found in the following packages:
 * node
 * nodejs
Try: apt-get install <selected package>

2 설치

root@zetawiki:~# curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
... (생략)
Fetched 6,553 B in 5s (1,268 B/s)
Reading package lists... Done

## Run `apt-get install nodejs` (as root) to install Node.js 4.x LTS Argon and npm
root@zetawiki:~# apt-get install nodejs
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  rlwrap
The following NEW packages will be installed:
  nodejs rlwrap
0 upgraded, 2 newly installed, 0 to remove and 71 not upgraded.
Need to get 10.9 MB of archives.
After this operation, 36.5 MB of additional disk space will be used.
Do you want to continue [Y/n]?
... (생략)
Processing triggers for man-db ...
Setting up rlwrap (0.37-2) ...
update-alternatives: using /usr/bin/rlwrap to provide /usr/bin/readline-editor (readline-editor) in auto mode.
Setting up nodejs (4.2.3-1nodesource1~precise1) ...

3 확인 2

root@zetawiki:~# node -v
v4.2.3

4 같이 보기