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

2번째 줄: 2번째 줄:
{{다른뜻|윈도우 node.js 설치}}
{{다른뜻|윈도우 node.js 설치}}
{{테스트|Ubuntu 14}}
{{테스트|Ubuntu 14}}
==개요==
;우분투 node.js 설치
;우분투 node.js 설치
* node.js와 npm이 함께 설치됨


==확인==
==확인==

2017년 5월 10일 (수) 00:19 판

  다른 뜻에 대해서는 CentOS node.js 설치 문서를 참조하십시오.
  다른 뜻에 대해서는 윈도우 node.js 설치 문서를 참조하십시오.

1 개요

우분투 node.js 설치
  • node.js와 npm이 함께 설치됨

2 확인

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

3 설치

  • nodesource( node.js 최신버전 제공 )의 APT 저장소 추가
root@zetawiki:~# curl -sL https://deb.nodesource.com/setup_6.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 7,325 B in 16s (431 B/s)                                               
Reading package lists... Done

## Run `apt-get install nodejs` (as root) to install Node.js v6.x and npm
  • 설치
root@zetawiki:~# apt-get install nodejs
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  nodejs
0 upgraded, 1 newly installed, 0 to remove and 188 not upgraded.
Need to get 9,940 kB of archives.
After this operation, 50.6 MB of additional disk space will be used.
Get:1 https://deb.nodesource.com/node_6.x/ trusty/main nodejs amd64 6.10.3-1nodesource1~trusty1 [9,940 kB]
Fetched 9,940 kB in 57s (172 kB/s)                                             
Selecting previously unselected package nodejs.
(Reading database ... 70474 files and directories currently installed.)
Preparing to unpack .../nodejs_6.10.3-1nodesource1~trusty1_amd64.deb ...
Unpacking nodejs (6.10.3-1nodesource1~trusty1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up nodejs (6.10.3-1nodesource1~trusty1) ...

4 확인 2

root@zetawiki:~# node -v
v6.10.3
root@zetawiki:~# npm -v
3.10.10

5 같이 보기

6 참고 자료

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