安装完却发现使用nvm use命令后提示切换成功,但是实际没有效果。

使用nvm list查看刚才设置的版本前没有星号。使用node -v命令,

提示“'node' 不是内部或外部命令,也不是可运行的程序”。

查资料发现一开始默认设置的nodejs目录“D:\Program Files\nodejs”带有空格,

于是改成nvm目录。结果仍然nvm use后不能用,测试nvm on和nvm off也没用。

最后修改了环境变量中用户与系统中两个NVM_SYMLINK的地址为nvm安装路径下的nodejs后,

终于能用了。

看来NVM_SYMLINK的地址最终目标文件必须是nodejs。

GitHub 加速计划 / nv / nvm-windows
793
18
下载
一个针对Windows平台的Node.js版本管理工具,是用Go语言编写的。
最近提交(Master分支:4 个月前 )
862ef44d Bumps [actions/github-script](https://github.com/actions/github-script) from 6 to 7. - [Release notes](https://github.com/actions/github-script/releases) - [Commits](https://github.com/actions/github-script/compare/v6...v7) --- updated-dependencies: - dependency-name: actions/github-script dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> 1 年前
2d3757a9 Bumps [softprops/action-gh-release](https://github.com/softprops/action-gh-release) from 1 to 2. - [Release notes](https://github.com/softprops/action-gh-release/releases) - [Changelog](https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md) - [Commits](https://github.com/softprops/action-gh-release/compare/v1...v2) --- updated-dependencies: - dependency-name: softprops/action-gh-release dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> 1 年前
Logo

AtomGit 是由开放原子开源基金会联合 CSDN 等生态伙伴共同推出的新一代开源与人工智能协作平台。平台坚持“开放、中立、公益”的理念,把代码托管、模型共享、数据集托管、智能体开发体验和算力服务整合在一起,为开发者提供从开发、训练到部署的一站式体验。

更多推荐