使用 windows 的节点版本管理器时找不到节点可执行文件

Node executable not found while using node version manager for windows

对于 windows 中的节点版本管理,我使用了 nvm-windows

按照文档中提到的步骤执行以下命令,

安装 Node.js v8

nvm install 8.9.4

要将其用作默认版本,

nvm use 8.9.4

将 nodejs v8 设置为默认版本后,当我尝试使用命令 (node -v) 验证节点 js 版本时。出现错误,因为 节点未被识别为内部或外部命令

我在安装节点时没有遇到任何错误,但是 "node" 无法识别。

注意:运行 我的命令提示符是管理员,NVM 环境变量属性是,

  1. NVM_HOME - C:\Users\USER_NAME\AppData\Roaming\nvm

  2. NVM_SYMLINK - C:\程序Files\nodejs

When I checked the folder C:\Program Files\nodejs, The folder is empty, None of the node executable files was found.

在 cmd 中键入以下命令以获取版本信息

nvm list

这是一个完美的教程,供您 运行 并查看如何在 windows 中的 cmd 中使用 nvm 运行s。 https://medium.com/appseed-io/how-to-run-multiple-versions-of-node-js-with-nvm-for-windows-ffbe5c7a2b47