๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
๊ฐœ๋ฐœ ์ผ์ง€ ๐Ÿ‘ฉ‍๐Ÿ’ป

์œˆ๋„์šฐ์— Node.js ์„ค์น˜ ๋ฐฉ๋ฒ•

by chuyj15 2025. 5. 13.
728x90
๋ฐ˜์‘ํ˜•
SMALL

Node.js ํ™ˆํŽ˜์ด์ง€ ์ ‘์†
https://nodejs.org/en

 

Node.js — Run JavaScript Everywhere

Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine.

nodejs.org

 

Node.js ๋‹ค์šด๋กœ๋“œ ๋ฐ ์„ค์น˜

๊ณ„์† ๋‹ค์Œ ๋‹ค์Œ ๋™์˜ ๋ˆ„๋ฅด๊ธฐ

๋‹ค์Œ ๋‹ค์Œ ํ•ด์„œ ์„ค์น˜ํ•˜๊ธฐ

 

 

tool ์„ค์น˜ -> ์•„๋ฌด ํ‚ค ์ž…๋ ฅ (2๋ฒˆ ์ •๋„ ์žˆ์Œ)

 

 

powershell ์ž๋™์‹คํ–‰

 

!! ์—ฌ๊ธฐ์„œ Chocolatey ์„ค์น˜ ๊ด€๋ จ ๋ฌธ์ œ๊ฐ€ ๋ฐœ์ƒํ–ˆ์Œ

WARNING: Files from a previous installation of Chocolatey were found at 'C:\ProgramData\chocolatey'.
WARNING: An existing Chocolatey installation was detected. Installation will not continue. This script will not
overwrite existing installations.
If there is no Chocolatey installation at 'C:\ProgramData\chocolatey', delete the folder and attempt the installation
again.

Please use choco upgrade chocolatey to handle upgrades of Chocolatey itself.
If the existing installation is not functional or a prior installation did not complete, follow these steps:
 - Backup the files at the path listed above so you can restore your previous installation if needed.
 - Remove the existing installation manually.
 - Rerun this installation script.
 - Reinstall any packages previously installed, if needed (refer to the lib folder in the backup).

Once installation is completed, the backup folder is no longer needed and can be deleted.
choco : The term 'choco' is not recognized as the name of a cmdlet, function, script file, or operable program. Check t
he spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:176
+ ... .DownloadString('https://chocolatey.org/install.ps1')); choco upgrade ...
+                                                             ~~~~~
    + CategoryInfo          : ObjectNotFound: (choco:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

 


โ— ์˜ค๋ฅ˜ ์š”์•ฝ:

  1. ๊ธฐ์กด Chocolatey ์„ค์น˜ ํ”์  ๋ฐœ๊ฒฌ
  2. pgsql
    WARNING: Files from a previous installation of Chocolatey were found at 'C:\ProgramData\chocolatey'.
  3. ํ•˜์ง€๋งŒ ํ˜„์žฌ Chocolatey๋Š” ์ •์ƒ์ ์œผ๋กœ ์„ค์น˜๋˜์–ด ์žˆ์ง€ ์•Š์Œ
  4. nginx
    There is no Chocolatey installation at 'C:\ProgramData\chocolatey'
  5. ๊ทธ๋ž˜์„œ choco ๋ช…๋ น์–ด๋„ ์ธ์‹๋˜์ง€ ์•Š์Œ (CommandNotFoundException)
  6. pgsql
    The term 'choco' is not recognized as the name of a cmdlet, function, script file, or operable program.

โœ… ํ•ด๊ฒฐ ๋ฐฉ๋ฒ•:

 

์ผ๋‹จ ์•„๋ฌด ํ‚ค๋‚˜ ๋ˆŒ๋Ÿฌ์„œ  exitํ•ด์ฃผ๊ณ  ์•„๋ž˜ ๋ฐฉ๋ฒ•์„ ์‹œ๋„ํ•จ.

1. ๊ธฐ์กด ์„ค์น˜ ํ”์  ์‚ญ์ œ
์•„๋ž˜ ๊ฒฝ๋กœ์— ๋‚จ์•„ ์žˆ๋Š” ํด๋”๋ฅผ ์‚ญ์ œํ•˜์„ธ์š”: C:\ProgramData\chocolatey
โš ๏ธ ๊ด€๋ฆฌ์ž ๊ถŒํ•œ์ด ํ•„์š”ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

2. PowerShell์„ '๊ด€๋ฆฌ์ž ๊ถŒํ•œ'์œผ๋กœ ์‹คํ–‰

3. Chocolatey ์žฌ์„ค์น˜
PowerShell์—์„œ ์•„๋ž˜ ๋ช…๋ น์–ด๋ฅผ ๋ณต์‚ฌ ๋ถ™์—ฌ๋„ฃ๊ธฐ ํ•ด์„œ ์žฌ์„ค์น˜:

powershell
Set-ExecutionPolicy Bypass -Scope Process -Force; `
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; `
iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))โ€‹

 

4. ์„ค์น˜ ํ™•์ธ

powershell
choco -v

๋‚˜์˜ ๊ฒฝ์šฐ 2.4.3๋ฒ„์ „์œผ๋กœ Chocolatey ๊ฐ€ ์ž˜ ์„ค์น˜๋˜์—ˆ๋‹ค.
 
5. ์ดํ›„ Node.js ์„ค์น˜
Chocolatey๊ฐ€ ์ •์ƒ ์„ค์น˜๋˜์—ˆ์œผ๋ฉด ๋‹ค์Œ ๋ช…๋ น์œผ๋กœ Node.js๋ฅผ ์„ค์น˜ํ•˜์„ธ์š”:

powershell
choco install nodejs
 

 

Do you want to run the script?([Y]es/[A]ll - yes to all/[N]o/[P]rint): ๋ฌธ๊ตฌ๊ฐ€ ๋œจ๋ฉด Y ์ž…๋ ฅํ•˜๊ธฐ

( ์ด ๋ฉ”์‹œ์ง€๋Š” Chocolatey๊ฐ€ Node.js ์„ค์น˜๋ฅผ ๊ณ„์† ์ง„ํ–‰ํ•ด๋„ ๊ดœ์ฐฎ์€์ง€ ๋ฌผ์–ด๋ณด๋Š” ๋ณด์•ˆ ํ™•์ธ ๋‹จ๊ณ„)

 

Chocolatey๊ฐ€ nodejs.install ํŒจํ‚ค์ง€๋ฅผ ์„ค์น˜ ์ค‘์ธ๋ฐ,

๊ทธ ์•ˆ์˜ ์„ค์น˜ ์Šคํฌ๋ฆฝํŠธ chocolateyInstall.ps1์„ ์‹คํ–‰ํ•ด๋„ ๊ดœ์ฐฎ์€์ง€ ํ™•์ธํ•˜๊ณ  ์žˆ๋Š” ์ค‘์ž…๋‹ˆ๋‹ค.

์ด ์Šคํฌ๋ฆฝํŠธ๋Š” Node.js ์„ค์น˜์˜ ํ•ต์‹ฌ ๋‹จ๊ณ„์ž…๋‹ˆ๋‹ค.

์‹คํ–‰ํ•˜์ง€ ์•Š์œผ๋ฉด ์„ค์น˜๊ฐ€ ์‹คํŒจํ•ฉ๋‹ˆ๋‹ค.

 

 

์ด์ œ ๋ช…๋ นํ”„๋กฌํ”„ํŠธ๋ฅผ ๋‹ค์‹œ ์‹คํ–‰ํ•˜๊ณ  ๋ช…๋ น์–ด 'node -v'๋ฅผ ์‹คํ–‰ํ•˜๋ฉด ์ด๋ ‡๊ฒŒ ์ž˜ ์„ค์น˜๊ฐ€ ๋œ ๊ฑธ ํ™•์ธํ•  ์ˆ˜ ์žˆ๋‹ค.

 

๋‚˜์˜ ๊ฒฝ์šฐ node v24.0.1 ์ด ์„ค์น˜๋˜์—ˆ๋‹ค.

 

 

 

 

 

 

 

 

 

728x90
๋ฐ˜์‘ํ˜•
LIST