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
โ ์ค๋ฅ ์์ฝ:
- ๊ธฐ์กด Chocolatey ์ค์น ํ์ ๋ฐ๊ฒฌ
-
pgsqlWARNING: Files from a previous installation of Chocolatey were found at 'C:\ProgramData\chocolatey'.
- ํ์ง๋ง ํ์ฌ Chocolatey๋ ์ ์์ ์ผ๋ก ์ค์น๋์ด ์์ง ์์
-
nginxThere is no Chocolatey installation at 'C:\ProgramData\chocolatey'
- ๊ทธ๋์ choco ๋ช ๋ น์ด๋ ์ธ์๋์ง ์์ (CommandNotFoundException)
-
pgsqlThe term 'choco' is not recognized as the name of a cmdlet, function, script file, or operable program.
โ ํด๊ฒฐ ๋ฐฉ๋ฒ:
์ผ๋จ ์๋ฌด ํค๋ ๋๋ฌ์ exitํด์ฃผ๊ณ ์๋ ๋ฐฉ๋ฒ์ ์๋ํจ.
์๋ ๊ฒฝ๋ก์ ๋จ์ ์๋ ํด๋๋ฅผ ์ญ์ ํ์ธ์: 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'))โ
powershell
choco -v
Chocolatey๊ฐ ์ ์ ์ค์น๋์์ผ๋ฉด ๋ค์ ๋ช ๋ น์ผ๋ก Node.js๋ฅผ ์ค์นํ์ธ์:
powershell
choco install nodejs
( ์ด ๋ฉ์์ง๋ Chocolatey๊ฐ Node.js ์ค์น๋ฅผ ๊ณ์ ์งํํด๋ ๊ด์ฐฎ์์ง ๋ฌผ์ด๋ณด๋ ๋ณด์ ํ์ธ ๋จ๊ณ)
Chocolatey๊ฐ nodejs.install ํจํค์ง๋ฅผ ์ค์น ์ค์ธ๋ฐ,
๊ทธ ์์ ์ค์น ์คํฌ๋ฆฝํธ chocolateyInstall.ps1์ ์คํํด๋ ๊ด์ฐฎ์์ง ํ์ธํ๊ณ ์๋ ์ค์ ๋๋ค.
์ด ์คํฌ๋ฆฝํธ๋ Node.js ์ค์น์ ํต์ฌ ๋จ๊ณ์ ๋๋ค.
์คํํ์ง ์์ผ๋ฉด ์ค์น๊ฐ ์คํจํฉ๋๋ค.
์ด์ ๋ช ๋ นํ๋กฌํํธ๋ฅผ ๋ค์ ์คํํ๊ณ ๋ช ๋ น์ด 'node -v'๋ฅผ ์คํํ๋ฉด ์ด๋ ๊ฒ ์ ์ค์น๊ฐ ๋ ๊ฑธ ํ์ธํ ์ ์๋ค.
๋์ ๊ฒฝ์ฐ node v24.0.1 ์ด ์ค์น๋์๋ค.
'๊ฐ๋ฐ ์ผ์ง ๐ฉโ๐ป' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
HeidiSQL์ ์ฌ์ฉํด์ MariaDB์ ๋ค๋ฅธ IP์์ ์ ์ํ ์ ์๋๋ก ์ค์ ํ๋ ๋ฐฉ๋ฒ (2) | 2025.05.14 |
---|---|
ํ์๋ฆฌํ๋ฅผ ํ์ฉํ์ฌ n๋ฒ ๋ฐ๋ณตํ๋ for๋ฌธ(๋ฐ๋ณต๋ฌธ) ์ฌ์ฉํ๋ ๋ฒ (0) | 2025.05.13 |
CSP(Content Security Policy)์ ๋ํ์ฌ (4) | 2025.05.12 |
spring boot) js ํ์ผ ๋๋ ํ ๋ฐฉ๋ฒ (0) | 2025.05.12 |
cursor ai / VSCode ์ฃผ์ ์๊น ๋ฐ๊พธ๋ ๋ฐฉ๋ฒ (0) | 2025.05.12 |