Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

启动出了多个实例 #101

Closed
lsrweb opened this issue Jul 26, 2024 · 12 comments
Closed

启动出了多个实例 #101

lsrweb opened this issue Jul 26, 2024 · 12 comments
Labels
bug Something isn't working

Comments

@lsrweb
Copy link

lsrweb commented Jul 26, 2024

在使用 utools 工具的时候会拉起多个应用实例

先启动一个,再通过utools启动一个,又能拉起一个,能拉起很多个
通过桌面快捷方式也可以拉起多个应用实例

image
image

@1111mp
Copy link
Owner

1111mp commented Jul 26, 2024

好的 知道是什么原因造成的了 在调用 createWindow 方法的时候没有判断窗口和系统托盘是否存在直接执行了 所以会出现这个问题 谢谢你的反馈 下个小版本会修复这个问题 谢谢 🌹

@1111mp 1111mp added the bug Something isn't working label Jul 26, 2024
@lsrweb
Copy link
Author

lsrweb commented Jul 26, 2024

让 nvmd-desktop 伟大!!!!!!!!!!!!
我现在离不开nvmd 了,太好用了,期望它越来越好

1111mp added a commit that referenced this issue Jul 28, 2024
Copy link

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

@github-actions github-actions bot added the stale label Aug 26, 2024
1111mp added a commit that referenced this issue Aug 28, 2024
@tzwhyqq
Copy link

tzwhyqq commented Aug 29, 2024

win11 企业版 23H2 。我看文档说的 系统变量 path 里面加不进去。请问有截图吗或者更详细的。我太菜了。

@github-actions github-actions bot removed the stale label Aug 29, 2024
@1111mp
Copy link
Owner

1111mp commented Aug 29, 2024

@tzwhyqq 系统高级设置 然后点击环境变量 双击打开系统环境变量path 然后点击新建 然后将 .nvmd\bin 所在目录完整地址复制粘贴进去 然后点击确定 应用保存 之后终端或者vscode 需要重启
image
image
image

@lsrweb
Copy link
Author

lsrweb commented Aug 29, 2024 via email

@1111mp
Copy link
Owner

1111mp commented Aug 29, 2024

  • 修改当前会话的 $env:PATH
$env:NVMD_HOME = $gradleHome
$env:PATH += ";$gradleHome\bin"
  • 使用 Invoke-Expression 强制 PowerShell 重新加载环境变量
$env:NVMD_HOME = $gradleHome
$env:PATH = [System.Environment]::GetEnvironmentVariable("PATH", [System.EnvironmentVariableTarget]::User) + ";$env:NVMD_HOME\bin"
  • 如果你安装了 Chocolatey 包管理器,那么可以使用 refreshenv 命令来刷新环境变量
refreshenv

我也是现学现卖 你看看能不能帮助到你

@lsrweb
Copy link
Author

lsrweb commented Aug 29, 2024 via email

@tzwhyqq
Copy link

tzwhyqq commented Aug 29, 2024

我又来求助,刚才那个问题好了。现在 我单独在 powershell 里面可以执行, 在 idea 或者vs 里面 就是没反应。
微信图片_20240829131340
试过 卸载了重新弄,还是有问题,要崩溃,这个win11 问题真多。

@tzwhyqq
Copy link

tzwhyqq commented Aug 29, 2024

我都不知道它怎么跑到这个 vueproject 目录,。我都没在安装在这个目录

@tzwhyqq
Copy link

tzwhyqq commented Aug 29, 2024

我的安装目录 D:\Program Files\nvm-desktop

@tzwhyqq
Copy link

tzwhyqq commented Aug 29, 2024

没事了。解决了。环境变量换成 大佬你给的 绝对路径就好,我原先用了 %HOMEXXXX% 那样就不行

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants