- 다른 뜻에 대해서는 CentOS node.js 설치 문서를 참조하십시오.
- 다른 뜻에 대해서는 윈도우 node.js 설치 문서를 참조하십시오.
✔️ Ubuntu 14, 16에서 테스트하였습니다.
1 개요[ | ]
- 우분투 node.js 설치
2 확인[ | ]
- 우분투 14
Console
Copy
root@zetawiki:~# node -v
The program 'node' can be found in the following packages:
* node
* nodejs-legacy
Try: apt-get install <selected package>
- 우분투 16
Console
Copy
root@zetawiki:~# node -v
-bash: node: command not found
root@zetawiki:~# npm -v
-bash: npm: command not found
3 설치[ | ]
- nodesource( node.js 최신버전 제공 )의 APT 저장소 추가
Console
Copy
root@zetawiki:~# curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
## Installing the NodeSource Node.js v6.x repo...
## Populating apt-get cache...
+ apt-get update
Hit:1 http://kr.archive.ubuntu.com/ubuntu xenial InRelease
Get:2 http://kr.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Get:3 http://kr.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
... (생략)
Get:7 https://deb.nodesource.com/node_6.x xenial/main amd64 Packages [963 B]
Get:8 https://deb.nodesource.com/node_6.x xenial/main i386 Packages [959 B]
Fetched 109 kB in 1s (58.2 kB/s)
Reading package lists... Done
## Run `apt-get install nodejs` (as root) to install Node.js v6.x and npm
- 설치
Console
Copy
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 36 not upgraded.
Need to get 10.1 MB of archives.
After this operation, 50.8 MB of additional disk space will be used.
Get:1 https://deb.nodesource.com/node_6.x xenial/main amd64 nodejs amd64 6.10.3-1nodesource1~xenial1 [10.1 MB]
Fetched 10.1 MB in 0s (12.1 MB/s)
Selecting previously unselected package nodejs.
(Reading database ... 103333 files and directories currently installed.)
Preparing to unpack .../nodejs_6.10.3-1nodesource1~xenial1_amd64.deb ...
Unpacking nodejs (6.10.3-1nodesource1~xenial1) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up nodejs (6.10.3-1nodesource1~xenial1) ...
4 확인 2[ | ]
Console
Copy
root@zetawiki:~# node -v
v6.10.3
root@zetawiki:~# npm -v
3.10.10
5 같이 보기[ | ]
6 참고[ | ]
편집자 Jmnote Jmnote bot
로그인하시면 댓글을 쓸 수 있습니다.
- 분류 댓글:
- Apt-get (2)
우분투 MySQL 설치 ― Qweqwe750우분투 MySQL 설치 ― Jmnote