mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-12 00:55:44 +02:00
22 lines
590 B
Markdown
22 lines
590 B
Markdown
![]() |
# nvm
|
||
|
|
||
|
> 安裝、解除安裝,或切換不同 Node.js 版本。
|
||
|
> 支援版本號如「12.8」或「v16.13.1」,以及像是「stable」、「system」等標籤。
|
||
|
> 更多資訊:<https://github.com/coreybutler/nvm-windows>.
|
||
|
|
||
|
- 安裝特定版本的 Node.js:
|
||
|
|
||
|
`nvm install {{node 版本}}`
|
||
|
|
||
|
- 設定系統預設使用的 Node.js 版本(必須以系統管理員身分執行):
|
||
|
|
||
|
`nvm use {{node 版本}}`
|
||
|
|
||
|
- 列出所有已安裝的 Node.js 版本,並標註當前系統使用的版本:
|
||
|
|
||
|
`nvm list`
|
||
|
|
||
|
- 解除安裝指定的 Node.js 版本:
|
||
|
|
||
|
`nvm uninstall {{node 版本}}`
|