public:computer:node.js

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revisionBoth sides next revision
public:computer:node.js [2022/09/18 02:52] alexpublic: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:
 </cli> </cli>
  
 +=== 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://deb.nodesource.com/setup_18.x -o nodesource_setup.sh  # version 18.x
 +$ sudo bash nodesource_setup.sh 
 +$ sudo apt-get install nodejs
 +$ sudo apt-get install build-essential
 +</sxh>
 +
 +  * nvm <sxh bash>
 +$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
 +$ source ~/.bashrc
 +$ nvm list-remote
 +$ nvm install <version>
 +$ nvm list
 +$ nvm use <version>
 +</sxh>
 +  * npm update <sxh bash>
 +$ npm install -g npm@latest
 +$ npm -v
 +</sxh>
 +
 +
 +==== Modules ====
  
   * https/http2 모듈   * https/http2 모듈
Line 245: Line 281:
   * pm2   * pm2
  
 +===== References =====
 +  * [[https://github.com/nvm-sh/nvm|Node Version Manager]]
 +
 +
 +<button type="default" size="xs" collapse="toc">book toc</button>
 +<collapse id="toc" collapsed="true">
 ==== 01 | 노드에 대해 알아보고 개발 도구 설치하기 ==== ==== 01 | 노드에 대해 알아보고 개발 도구 설치하기 ====
 노드란 무엇일까? 노드란 무엇일까?
Line 551: Line 593:
 레디스로 subscribe, publish 하기 레디스로 subscribe, publish 하기
 채팅 서버에서 레디스를 사용하는 샘플 채팅 서버에서 레디스를 사용하는 샘플
 +</collapse>
  • public/computer/node.js.txt
  • Last modified: 2023/01/03 09:54
  • by alex