← 返回命令列表

Linux command

ps-nvm 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

List Node versions (PowerShell)

ps-nvm list

Install Node version

ps-nvm install [18.0.0]

Use specific version

ps-nvm use [18.0.0]

Set default version

ps-nvm default [18.0.0]

说明

ps-nvm is a Node.js version manager designed natively for PowerShell on Windows. It allows installing, switching between, and managing multiple Node.js versions on a single system, similar to nvm on Unix but built specifically for the PowerShell environment. The tool downloads and manages Node.js binaries, adjusting the system PATH to point to the selected version. A default version can be set to persist across new PowerShell sessions.

参数

list
List installed versions.
install _VERSION_
Install Node version.
use _VERSION_
Switch to version.
default _VERSION_
Set default version.
uninstall _VERSION_
Remove version.

FAQ

What is the ps-nvm command used for?

ps-nvm is a Node.js version manager designed natively for PowerShell on Windows. It allows installing, switching between, and managing multiple Node.js versions on a single system, similar to nvm on Unix but built specifically for the PowerShell environment. The tool downloads and manages Node.js binaries, adjusting the system PATH to point to the selected version. A default version can be set to persist across new PowerShell sessions.

How do I run a basic ps-nvm example?

Run `ps-nvm list` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does list do in ps-nvm?

List installed versions.