From 4c7f16fa66ddc4b5dd6fd8a8feb31844e5e42733 Mon Sep 17 00:00:00 2001 From: Aoran Zeng Date: Sat, 8 Jun 2024 13:37:25 +0800 Subject: [PATCH] Not hide output when changing source for `NodeJS` [GitHub link #21] --- src/chsrc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/chsrc.c b/src/chsrc.c index a9316b9..55501b4 100644 --- a/src/chsrc.c +++ b/src/chsrc.c @@ -261,13 +261,14 @@ pl_nodejs_setsrc (char *option) if (yarn_exist) { - cmd = xy_str_to_quietcmd (xy_2strjoin ("yarn config set registry ", source.url)); + // 不再阻止换源命令输出到终端,即不再调用 xy_str_to_quietcmd() + cmd = xy_2strjoin ("yarn config set registry ", source.url); chsrc_run (cmd); } if (pnpm_exist) { - cmd = xy_str_to_quietcmd (xy_2strjoin ("pnpm config set registry ", source.url)); + cmd = xy_2strjoin ("pnpm config set registry ", source.url); chsrc_run (cmd); }