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

use 命令不准确 #11

Open
axetroy opened this issue Mar 10, 2025 · 0 comments
Open

use 命令不准确 #11

axetroy opened this issue Mar 10, 2025 · 0 comments

Comments

@axetroy
Copy link
Owner

axetroy commented Mar 10, 2025

由于 use 命令使用的是 pty 启动终端,这样就有会运行终端的脚本,继而覆盖我们已设置好的环境变量。

例如

nodapt use ^8.0.0
# 设置了 8.0.0 的 %PATH 变量
# 启动 shell
# 运行 shell 脚本,例如 .bashrc
# 覆盖 $PATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant