gpt4 book ai didi

node.js - "nvm use"命令在Windows中做什么?

转载 作者:太空宇宙 更新时间:2023-11-03 23:18:35 24 4
gpt4 key购买 nike

它会编辑 Windows 注册表吗?添加一些东西到路径?将环境变量添加到用户配置文件?将某些内容存储到 APP_DATA 目录?

“nvm use”命令的结果到底是什么?给定的设置如何保留到系统中?

最佳答案

NVM for Windows maintains a single symlink that is put in the system PATH during installation only. Switching to different versions of node is a matter of switching the symlink target. As a result, this utility does not require you to run nvm use x.x.x every time you open a console window. When you do run nvm use x.x.x, the active version of node is automatically updated across all open console windows. It also persists between system reboots, so you only need to use nvm when you want to make a change.

source

符号链接(symbolic link)位于%NVM_SYMLINK%下默认为C:\Program Files\nodejs版本可在 %NVM_HOME% 下下载默认为 C:\Users\<user>\AppData\Roaming\nvm

关于node.js - "nvm use"命令在Windows中做什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52276654/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com