Files
tldr/pages.zh/common/install-nodeversion.md

25 lines
726 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 安装-节点版本
> 为 `ps-nvm` 安装 Node.js 运行时版本。
> 此命令是 `ps-nvm` 的一部分,仅能在 PowerShell 下运行。
> 更多信息:<https://github.com/aaronpowell/ps-nvm>。
- 安装特定的 Node.js 版本:
`Install-NodeVersion {{node_version}}`
- 安装多个 Node.js 版本:
`Install-NodeVersion {{node_version1 , node_version2 , ...}}`
- 安装最新可用的 Node.js 20 版本:
`Install-NodeVersion ^20`
- 安装 x86x86 32 位)/ x64x86 64 位)/ arm64ARM 64 位)版本的 Node.js
`Install-NodeVersion {{node_version}} -Architecture {{x86|x64|arm64}}`
- 使用 HTTP 代理下载 Node.js
`Install-NodeVersion {{node-version}} -Proxy {{http://example.com}}`