Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revisionLast revisionBoth sides next revision | ||
public:computer:node.js [2022/09/18 02:52] – alex | public:computer:node.js [2023/01/02 16:55] – [Install Node.js on Ubuntu] alex | ||
---|---|---|---|
Line 33: | Line 33: | ||
or | or | ||
$ yarn global add @vue/cli | $ yarn global add @vue/cli | ||
+ | or | ||
+ | $ yarn dlx @vue/clie | ||
$ vue --version | $ vue --version | ||
Line 65: | Line 67: | ||
</ | </ | ||
+ | === Install Node.js on Ubuntu === | ||
+ | * Install Node.js on Ubuntu <sxh bash> | ||
+ | # to install node.js we need CURL | ||
+ | $ sudo apt install -y curl | ||
+ | |||
+ | # install node.js using apt package manager | ||
+ | $ sudo apt update & sudo apt upgrade -y | ||
+ | $ sudo apt install nodejs | ||
+ | $ nodejs -v | ||
+ | $ sudo apt install npm | ||
+ | $ npm -v | ||
+ | |||
+ | # using PPA | ||
+ | $ curl -sL https:// | ||
+ | $ sudo bash nodesource_setup.sh | ||
+ | $ sudo apt-get install nodejs | ||
+ | $ sudo apt-get install build-essential | ||
+ | </ | ||
+ | |||
+ | * nvm <sxh bash> | ||
+ | $ curl -o- https:// | ||
+ | $ source ~/.bashrc | ||
+ | $ nvm list-remote | ||
+ | $ nvm install < | ||
+ | $ nvm list | ||
+ | $ nvm use < | ||
+ | </ | ||
+ | * npm update <sxh bash> | ||
+ | $ npm install -g npm@latest | ||
+ | $ npm -v | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==== Modules ==== | ||
* https/http2 모듈 | * https/http2 모듈 | ||
Line 245: | Line 281: | ||
* pm2 | * pm2 | ||
+ | ===== References ===== | ||
+ | * [[https:// | ||
+ | |||
+ | |||
+ | <button type=" | ||
+ | < | ||
==== 01 | 노드에 대해 알아보고 개발 도구 설치하기 ==== | ==== 01 | 노드에 대해 알아보고 개발 도구 설치하기 ==== | ||
노드란 무엇일까? | 노드란 무엇일까? | ||
Line 551: | Line 593: | ||
레디스로 subscribe, publish 하기 | 레디스로 subscribe, publish 하기 | ||
채팅 서버에서 레디스를 사용하는 샘플 | 채팅 서버에서 레디스를 사용하는 샘플 | ||
+ | </ |