Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
C:\Windows\system32>nvm list
    6.7.0
  * 5.12.0 (Currently using 64-bit executable)
C:\Windows\system32>nvm use 5.12.0
运行此命令时显示此消息
exit status 1: 'C:\Users\Mehjabin' is not recognized as an internal or external command, operable program or batch file.
但我添加了一个批处理文件,例如 .profile 如何修复它?
小智 9
尝试这个
现在在 cmd 中运行此命令
nvm root C:\nodejs-root\nvm
nvm install latest
nvm use 14.4.0
(就我而言,截至 2020 年 6 月 14 日,最新版本是 14.4.0)因此我确实 nvm 使用了 14.4.0
在此阶段,您可能会遇到以下错误
elevate.cmd 丢失(或类似的东西)
在我的案例中,只需导航到 nvm 最初安装的位置: C:\Users\Sufyan Parkar\AppData\Roaming\nvm
从该文件夹复制这两个文件
并将其粘贴到位于新创建的文件夹中 C:\nodejs-root\nvm
检查默认的 nvm 路径是否已添加到您的系统路径(提示 - Windows 键 > 搜索“环境变量”> 选择“编辑系统环境变量”。确保有这样的条目(如果您选择了默认的 nvm 安装)地点):
C:\Users\*username*\AppData\Roaming\nvm\
| 归档时间: | 
 | 
| 查看次数: | 4798 次 | 
| 最近记录: |