Files
tldr/pages.zh/common/fnm.md

25 lines
524 B
Markdown
Raw Permalink 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.

# fnm
> 快速 Node.js 版本管理器。
> 安装、卸载或在 Node.js 版本之间切换。
> 更多信息:<https://github.com/Schniz/fnm>。
- 安装特定版本的 Node.js
`fnm install {{node_version}}`
- 列出所有可用的 Node.js 版本,并突出显示默认版本:
`fnm list`
- 在当前 shell 中使用特定版本的 Node.js
`fnm use {{node_version}}`
- 设置默认的 Node.js 版本:
`fnm default {{node_version}}`
- 卸载指定的 Node.js 版本:
`fnm uninstall {{node_version}}`