1111mp / nvm-desktop

Node Version Manager Desktop - A desktop application to manage multiple active node.js versions.
https://github.com/1111mp/nvm-desktop
MIT License
621 stars 31 forks source link

能自动读取 .nvmdrc 中的node版本吗? #72

Closed xiaomu-dev closed 2 months ago

1111mp commented 4 months ago

不太能理解你的意思...

不过.nvmdrc文件是用来为project来指定nodejs版本的,当你在某个目录下设置过.nvmdrc文件(只需要设置一次即可),那么在此目录下的nodejs的版本就会是.nvmdrc文件中设置的版本,这一切都是自动的,不需要用户参与。

也就是说当你通过.nvmdrc为项目设置过版本号之后,你就什么都不需要管了,直接使用nodejs即可,无论是在该目录下终端下运行node --version还是直接运行你的项目(终端或者vscode等编译器启动....),此时的nodejs的版本就是.nvmdrc设置的版本号。

github-actions[bot] commented 2 months ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 2 months ago

This issue was closed because it has been inactive for 14 days since being marked as stale.