Skip to content

Commit

Permalink
docs: add log
Browse files Browse the repository at this point in the history
  • Loading branch information
kungfuboy committed Feb 28, 2023
1 parent 8f64179 commit 1168bc0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/platform/node/extension-manager/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export class ModuleHandler extends CoreHandler {
* @param isLocal 本地安装用link
*/
async install(modules: any[], isLocal: boolean): Promise<ModuleHandlerResult> {
// * Check the registry before install
// * Check the registry before install, you can see the log in terminal
// const check = spawn('npm', ['config', 'get', 'registry']);
// check.stdout
// .on('data', (data: string) => {
Expand Down
2 changes: 1 addition & 1 deletion src/platform/node/extension-manager/manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class ModuleManager {
this.lang = LanguageService;
this.moduleHandler = new ModuleHandler({
baseDir: HOME_DIR,
registry: this.lang.get === 'zh-Hans' ? 'https://registry.npmmirror.com' : 'https://registry.npmjs.org'
registry: this.lang.get() === 'zh-Hans' ? 'https://registry.npmmirror.com' : 'https://registry.npmjs.org'
});
this.modules = new Map();
this.features = new Map();
Expand Down

0 comments on commit 1168bc0

Please sign in to comment.