"우분투16 node.js 설치"의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-<source lang='cli'> +<source lang='console'>))
1번째 줄: 1번째 줄:
{{테스트|Ubuntu 14}}
;우분투 node.js 설치
;우분투 node.js 설치


6번째 줄: 7번째 줄:
The program 'node' can be found in the following packages:
The program 'node' can be found in the following packages:
  * node
  * node
  * nodejs
  * nodejs-legacy
Try: apt-get install <selected package>
Try: apt-get install <selected package>
</source>
</source>
14번째 줄: 15번째 줄:
root@zetawiki:~# curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
root@zetawiki:~# curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
... (생략)
... (생략)
Fetched 6,553 B in 5s (1,268 B/s)
Ign http://us.archive.ubuntu.com trusty/multiverse Translation-en_US         
Ign http://us.archive.ubuntu.com trusty/restricted Translation-en_US         
Ign http://us.archive.ubuntu.com trusty/universe Translation-en_US           
Fetched 9,445 B in 20s (468 B/s)                                              
Reading package lists... Done
Reading package lists... Done


## Run `apt-get install nodejs` (as root) to install Node.js 4.x LTS Argon and npm
## Run `apt-get install nodejs` (as root) to install Node.js v4.x LTS Argon and npm
</source>
</source>
<source lang='console'>
<source lang='console'>
24번째 줄: 28번째 줄:
Building dependency tree       
Building dependency tree       
Reading state information... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libc-ares2 libv8-3.14.5
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
The following extra packages will be installed:
   rlwrap
   rlwrap
The following NEW packages will be installed:
The following NEW packages will be installed:
   nodejs rlwrap
  rlwrap
0 upgraded, 2 newly installed, 0 to remove and 71 not upgraded.
The following packages will be upgraded:
Need to get 10.9 MB of archives.
   nodejs
After this operation, 36.5 MB of additional disk space will be used.
1 upgraded, 1 newly installed, 0 to remove and 75 not upgraded.
Do you want to continue [Y/n]?
Need to get 8,712 kB of archives.
After this operation, 39.0 MB of additional disk space will be used.
Do you want to continue? [Y/n]  
</source>
</source>
<source lang='console'>
<source lang='console'>
... (생략)
... (생략)
Processing triggers for man-db ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up rlwrap (0.37-2) ...
Setting up rlwrap (0.37-5) ...
update-alternatives: using /usr/bin/rlwrap to provide /usr/bin/readline-editor (readline-editor) in auto mode.
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) ...
Setting up nodejs (4.4.5-1nodesource1~trusty1) ...
</source>
</source>


44번째 줄: 53번째 줄:
<source lang='console'>
<source lang='console'>
root@zetawiki:~# node -v
root@zetawiki:~# node -v
v4.2.3
v4.4.5
</source>
</source>



2016년 6월 19일 (일) 11:22 판

우분투 node.js 설치

1 확인

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

2 설치

root@zetawiki:~# curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
... (생략)
Ign http://us.archive.ubuntu.com trusty/multiverse Translation-en_US           
Ign http://us.archive.ubuntu.com trusty/restricted Translation-en_US           
Ign http://us.archive.ubuntu.com trusty/universe Translation-en_US             
Fetched 9,445 B in 20s (468 B/s)                                               
Reading package lists... Done

## Run `apt-get install nodejs` (as root) to install Node.js v4.x LTS Argon and npm
root@zetawiki:~# apt-get install nodejs
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libc-ares2 libv8-3.14.5
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  rlwrap
The following NEW packages will be installed:
  rlwrap
The following packages will be upgraded:
  nodejs
1 upgraded, 1 newly installed, 0 to remove and 75 not upgraded.
Need to get 8,712 kB of archives.
After this operation, 39.0 MB of additional disk space will be used.
Do you want to continue? [Y/n]
... (생략)
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up rlwrap (0.37-5) ...
update-alternatives: using /usr/bin/rlwrap to provide /usr/bin/readline-editor (readline-editor) in auto mode
Setting up nodejs (4.4.5-1nodesource1~trusty1) ...

3 확인 2

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

4 같이 보기

5 참고 자료

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}