Node.js 18 ကို မေးခွန်းမမေးဘဲ ထည့်သွင်းရန်၊ ပြန်ဖယ်ရှားရန်နှင့် deployment ကိရိယာများမှ ထောက်လှမ်းရန် command များ ဖြစ်ပါသည်။ command တစ်ခုကို သေချာမှသာ ပြပါသည် — manifest မှ သို့မဟုတ် installer နည်းပညာ၏ မှတ်တမ်းတင်ထားသော မူလတန်ဖိုးမှ ဖြစ်ပါသည်။
ဆက်စပ် လမ်းညွှန်: အသံတိတ်ထည့်သွင်းခြင်း switch များ - MSI၊ NSIS၊ Inno Setup · Registry သို့မဟုတ် PowerShell ဖြင့် ပရိုဂရမ် ဖယ်ရှားနည်း
winget ဖြင့်
PowerShell
winget install --id OpenJS.NodeJS.18 -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id OpenJS.NodeJS.18 -e --silentwinget uninstall --id OpenJS.NodeJS.18 -e --silentInstaller အလိုက်
64-bit · MSI · အသုံးပြုသူအားလုံး
အသံတိတ်ထည့်သွင်းခြင်း
msiexec /i node-v18.20.8-x64.msi /qn /norestartLog ဖိုင် ရေးရန်
msiexec /i node-v18.20.8-x64.msi /qn /norestart /l*v "%TEMP%\node-js-18-install.log"ဖယ်ရှားခြင်း (Uninstall)
msiexec /x {CC48A89B-2866-40B4-8B58-3DEFB1F2643E} /qn /norestart- MSI product code
- {CC48A89B-2866-40B4-8B58-3DEFB1F2643E}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{CC48A89B-2866-40B4-8B58-3DEFB1F2643E}
- ထည့်သွင်းမည့် ဖိုင်တွဲ
- %ProgramFiles%\nodejs
64-bit · ZIP
ထည့်သွင်းရန် မလိုပါ (portable)
32-bit · MSI · အသုံးပြုသူအားလုံး
အသံတိတ်ထည့်သွင်းခြင်း
msiexec /i node-v18.20.8-x86.msi /qn /norestartLog ဖိုင် ရေးရန်
msiexec /i node-v18.20.8-x86.msi /qn /norestart /l*v "%TEMP%\node-js-18-install.log"ဖယ်ရှားခြင်း (Uninstall)
msiexec /x {4035A1E1-3B32-4961-AD82-1D0E05AE5FD7} /qn /norestart- MSI product code
- {4035A1E1-3B32-4961-AD82-1D0E05AE5FD7}
- Uninstall registry key
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{4035A1E1-3B32-4961-AD82-1D0E05AE5FD7}
- ထည့်သွင်းမည့် ဖိုင်တွဲ
- %ProgramFiles(x86)%\nodejs
32-bit · ZIP
ထည့်သွင်းရန် မလိုပါ (portable)
PowerShell - ဒေါင်းလုဒ်၊ စစ်ဆေး၊ ထည့်သွင်း
တရားဝင်ဖိုင်ကို ဒေါင်းလုဒ်လုပ်ပြီး SHA256 ကို စစ်ဆေးကာ အသံတိတ် ထည့်သွင်းပါသည်။
install-node-js-18.ps1
$url = 'https://nodejs.org/dist/v18.20.8/node-v18.20.8-x64.msi'
$sha256 = 'BD8B92343E12DBE9E573D2F5D5FEC6953FCF12E00ADD58A29A6774391D02F342'
$file = Join-Path $env:TEMP 'node-v18.20.8-x64.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait install-node-js-18.ps1
$url = 'https://nodejs.org/dist/v18.20.8/node-v18.20.8-x86.msi'
$sha256 = 'C7A04A1378CB66F5716F2B67C65921497972E883541BC48C0B19C92668F1713D'
$file = Join-Path $env:TEMP 'node-v18.20.8-x86.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait