diff --git a/README.md b/README.md index e72ed26..c72111d 100644 --- a/README.md +++ b/README.md @@ -97,7 +97,7 @@ chsrc set ruby rubychina # 使用 RubyChina 作为镜像站 ```bash chsrc set ruby 或 set gem chsrc set python 或 set pip -chsrc set node 或 set npm / nodejs / yarn +chsrc set node 或 set npm / nodejs / yarn / pnpm # 同时换3个 chsrc set perl 或 set cpan chsrc set php 或 set composer chsrc set lua 或 set luarocks diff --git a/chsrc.c b/chsrc.c index decf17b..a38600f 100644 --- a/chsrc.c +++ b/chsrc.c @@ -1899,7 +1899,7 @@ TargetInfo static const char *pl_ruby [] = {"gem", "ruby", "rubygem", "rb", "rubygems",NULL, t(&pl_ruby_target)}, *pl_python[] = {"pip", "python", "pypi", "py", NULL, t(&pl_python_target)}, -*pl_nodejs[] = {"npm", "node", "nodejs", "js", "yarn", NULL, t(&pl_nodejs_target)}, +*pl_nodejs[] = {"npm", "node", "nodejs", "js", "yarn", "pnpm", NULL, t(&pl_nodejs_target)}, *pl_perl [] = {"perl", "cpan", NULL, t(&pl_perl_target)}, *pl_php [] = {"php", "composer", NULL, t(&pl_php_target)}, *pl_lua [] = {"lua", "luarocks", NULL, t(&pl_lua_target)},