From 5c3d106911aa40b3b1546a51b3de276499d0076f Mon Sep 17 00:00:00 2001 From: baozhoutao Date: Sun, 15 Dec 2024 15:19:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=BD=AF=E4=BB=B6=E5=8C=85?= =?UTF-8?q?=E5=AE=89=E8=A3=85=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service-package-registry/main/default/manager/registry.js | 3 ++- services/service-package-registry/project.package.service.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/services/service-package-registry/main/default/manager/registry.js b/services/service-package-registry/main/default/manager/registry.js index 516c76d609..951f3831fa 100644 --- a/services/service-package-registry/main/default/manager/registry.js +++ b/services/service-package-registry/main/default/manager/registry.js @@ -121,7 +121,7 @@ async function installModule(module, version, url, registry_url) { // if( check !== false){ // return check; // } - console.log('install package: ', module, version, url) + console.log('install package: ', module, version, url, registry_url) module = module || ""; activePromise = activePromise.then(async function() { //TODO: ensure module is 'safe' @@ -198,6 +198,7 @@ async function installModule(module, version, url, registry_url) { yarnArgs.push('--registry') yarnArgs.push(registry_url) } + console.log('command run:', yarnCommand, yarnArgs.join(' ')) return exec.run(yarnCommand,yarnArgs,{ cwd: installDir }, true).then(result => { diff --git a/services/service-package-registry/project.package.service.js b/services/service-package-registry/project.package.service.js index 3bcf4a2e69..b158bfc1ba 100644 --- a/services/service-package-registry/project.package.service.js +++ b/services/service-package-registry/project.package.service.js @@ -394,8 +394,8 @@ module.exports = { async handler(){ const settings = this.settings; const packages = settings.STEEDOS_INITIAL_PACKAGES; - console.log('install initial packages: ', packages); if(_.isString(packages) && packages){ + console.log('install initial packages: ', packages); for (const packageName of packages.split(',')) { try { const parsed = npa(packageName);