[node.js] NVM์„ ์ด์šฉํ•œ node.js ๋ฐ ๊ธฐ๋ณธ ์„ธํŒ…

1. NVM ์„ค์น˜

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash

 

2. ์†Œ์Šค ์ ์šฉ

source ~/.bashrc

 

3. ๋…ธ๋“œ ์„ค์น˜

๊ตฌ๋ฆ„IDE์—์„œ ์˜ค๋ฅ˜ ๋ฐœ์ƒ์‹œ https://sunnys-note.tistory.com/12 ์ฐธ๊ณ 

 

[Node.js] Node.js ์„ค์น˜ ํ›„ `GLIBC_2.28' not found (required by node) ์—๋Ÿฌ

1. ์—๋Ÿฌ์ฝ”๋“œ ํ™•์ธ ๋ฐ ์›์ธ (1) ๊ฐœ๋ฐœํ™˜๊ฒฝ - ubuntu-18.04 (2) ์—๋Ÿฌ๋ฐœ์ƒ ์›์ธ - ์šฐ๋ถ„ํˆฌ 18.04 ์—์„œ ์ตœ์‹  node ๋ฒ„์ „ (18.0.0์ด์ƒ) ์„ค์น˜ ํ›„ npm ๋ช…๋ น ์‹คํ–‰์‹œ ๋‹ค์Œ๊ณผ ๊ฐ™์€ ์—๋Ÿฌ ๋ฐœ์ƒ $ npm install node: /lib/x86_64-linux-gnu/li

sunnys-note.tistory.com

nvm install node  # ์ตœ์‹  ๋ฒ„์ „
nvm install 17 # 17๋ฒ„์ „ (Goorm IDE ubuntu 18.04 ๊ธฐ์ค€)

 

4. nvm ๊ธฐ๋ณธ ์„ค์ •

nvm alias default 17