如何在windows中安装nvm

问题描述 投票:0回答:1

我已经安装了node,但我需要降级版本,我正在考虑使用nvm。

我正在尝试在 Windows 中使用以下命令在具有管理员权限的 cmd 上安装 nvm:

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash

但是我得到了以下信息:

C:\windows\system32>curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0The system cannot find the path specified.
 49 16555   49  8226    0     0  88636      0 --:--:-- --:--:-- --:--:-- 92426
curl: (23) Failure writing output to destination

如何正确安装nvm?

nvm
1个回答
0
投票

实际上你正在尝试在windows上执行ubuntu/mac的命令。

如果您想在 Windows 中安装 NVM,请参阅此分步指南。

分步指南

NVM 适用于 Windows

© www.soinside.com 2019 - 2024. All rights reserved.