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

잔글 (Jmnote님이 우분투18 node.js 설치 문서를 우분투18 node.js 8 설치 문서로 이동했습니다)
 
(같은 사용자의 중간 판 하나는 보이지 않습니다)
1번째 줄: 1번째 줄:
==개요==
==개요==
;우분투18 node.js 설치
;우분투18 node.js + npm 설치


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

2018년 11월 26일 (월) 21:22 기준 최신판

1 개요[ | ]

우분투18 node.js + npm 설치

2 확인[ | ]

root@zetawiki:~# node -v

Command 'node' not found, but can be installed with:

apt install nodejs
root@zetawiki:~# npm -v

Command 'npm' not found, but can be installed with:

apt install npm

3 설치[ | ]

root@zetawiki:~# apt install nodejs npm
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package nodejs
E: Unable to locate package npm
root@zetawiki:~# apt update
Hit:1 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu bionic InRelease
Get:2 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:3 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
...
Get:36 http://security.ubuntu.com/ubuntu bionic-security/multiverse Translation-en [996 B]  
Fetched 26.3 MB in 7s (3684 kB/s)                                                           
Reading package lists... Done
Building dependency tree       
Reading state information... Done
105 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@zetawiki:~# apt install nodejs npm
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  binutils binutils-common binutils-x86-64-linux-gnu build-essential cpp cpp-7 dpkg-dev
  fakeroot g++ g++-7 gcc gcc-7 gcc-7-base gcc-8-base gyp javascript-common
  libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl libasan4
  libatomic1 libbinutils libc-ares2 libc-dev-bin libc6-dev libcc1-0 libcilkrts5
  libdpkg-perl libfakeroot libfile-fcntllock-perl libgcc-7-dev libgcc1 libgomp1
  libhttp-parser2.7.1 libisl19 libitm1 libjs-async libjs-inherits libjs-jquery
  libjs-node-uuid libjs-underscore liblsan0 libmpc3 libmpx2 libpython-stdlib
  libpython2.7-minimal libpython2.7-stdlib libquadmath0 libssl1.0-dev libstdc++-7-dev
  libstdc++6 libtsan0 libubsan0 libuv1 libuv1-dev linux-libc-dev make manpages-dev
  node-abbrev node-ansi node-ansi-color-table node-archy node-async node-balanced-match
  node-block-stream node-brace-expansion node-builtin-modules node-combined-stream
  node-concat-map node-cookie-jar node-delayed-stream node-forever-agent node-form-data
  node-fs.realpath node-fstream node-fstream-ignore node-github-url-from-git node-glob
  node-graceful-fs node-gyp node-hosted-git-info node-inflight node-inherits node-ini
  node-is-builtin-module node-isexe node-json-stringify-safe node-lockfile node-lru-cache
  node-mime node-minimatch node-mkdirp node-mute-stream node-node-uuid node-nopt
  node-normalize-package-data node-npmlog node-once node-osenv node-path-is-absolute
  node-pseudomap node-qs node-read node-read-package-json node-request node-retry
  node-rimraf node-semver node-sha node-slide node-spdx-correct node-spdx-expression-parse
  node-spdx-license-ids node-tar node-tunnel-agent node-underscore
  node-validate-npm-package-license node-which node-wrappy node-yallist nodejs-dev
  nodejs-doc python python-minimal python-pkg-resources python2.7 python2.7-minimal
Suggested packages:
  binutils-doc cpp-doc gcc-7-locales debian-keyring g++-multilib g++-7-multilib gcc-7-doc
  libstdc++6-7-dbg gcc-multilib autoconf automake libtool flex bison gdb gcc-doc
  gcc-7-multilib libgcc1-dbg libgomp1-dbg libitm1-dbg libatomic1-dbg libasan4-dbg
  liblsan0-dbg libtsan0-dbg libubsan0-dbg libcilkrts5-dbg libmpx2-dbg libquadmath0-dbg
  apache2 | lighttpd | httpd glibc-doc bzr libstdc++-7-doc make-doc node-hawk node-aws-sign
  node-oauth-sign node-http-signature debhelper python-doc python-tk python-setuptools
  python2.7-doc binfmt-support
The following NEW packages will be installed:
  binutils binutils-common binutils-x86-64-linux-gnu build-essential cpp cpp-7 dpkg-dev
  fakeroot g++ g++-7 gcc gcc-7 gcc-7-base gyp javascript-common libalgorithm-diff-perl
  libalgorithm-diff-xs-perl libalgorithm-merge-perl libasan4 libatomic1 libbinutils
  libc-ares2 libc-dev-bin libc6-dev libcc1-0 libcilkrts5 libdpkg-perl libfakeroot
  libfile-fcntllock-perl libgcc-7-dev libgomp1 libhttp-parser2.7.1 libisl19 libitm1
  libjs-async libjs-inherits libjs-jquery libjs-node-uuid libjs-underscore liblsan0 libmpc3
  libmpx2 libpython-stdlib libpython2.7-minimal libpython2.7-stdlib libquadmath0
  libssl1.0-dev libstdc++-7-dev libtsan0 libubsan0 libuv1 libuv1-dev linux-libc-dev make
  manpages-dev node-abbrev node-ansi node-ansi-color-table node-archy node-async
  node-balanced-match node-block-stream node-brace-expansion node-builtin-modules
  node-combined-stream node-concat-map node-cookie-jar node-delayed-stream
  node-forever-agent node-form-data node-fs.realpath node-fstream node-fstream-ignore
  node-github-url-from-git node-glob node-graceful-fs node-gyp node-hosted-git-info
  node-inflight node-inherits node-ini node-is-builtin-module node-isexe
  node-json-stringify-safe node-lockfile node-lru-cache node-mime node-minimatch
  node-mkdirp node-mute-stream node-node-uuid node-nopt node-normalize-package-data
  node-npmlog node-once node-osenv node-path-is-absolute node-pseudomap node-qs node-read
  node-read-package-json node-request node-retry node-rimraf node-semver node-sha
  node-slide node-spdx-correct node-spdx-expression-parse node-spdx-license-ids node-tar
  node-tunnel-agent node-underscore node-validate-npm-package-license node-which
  node-wrappy node-yallist nodejs nodejs-dev nodejs-doc npm python python-minimal
  python-pkg-resources python2.7 python2.7-minimal
The following packages will be upgraded:
  gcc-8-base libgcc1 libstdc++6
3 upgraded, 126 newly installed, 0 to remove and 102 not upgraded.
Need to get 51.7 MB of archives.
After this operation, 227 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libpython2.7-minimal amd64 2.7.15~rc1-1ubuntu0.1 [334 kB]
Get:2 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu bionic-updates/main amd64 python2.7-minimal amd64 2.7.15~rc1-1ubuntu0.1 [1304 kB]
Get:3 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu bionic/main amd64 python-minimal amd64 2.7.15~rc1-1 [28.1 kB]
...
Setting up node-tar (2.2.1-1) ...
Setting up node-gyp (3.6.2-1ubuntu1) ...################################################.] 
Setting up npm (3.5.2-0ubuntu4) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...

4 확인 2[ | ]

root@zetawiki:~# node -v
v8.10.0
root@zetawiki:~# npm -v
3.5.2

5 같이 보기[ | ]

6 참고[ | ]

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