Bladeren bron

去警告

ychael 2 maanden geleden
bovenliggende
commit
57c5b3e7c4

+ 1 - 1
enviroment-check.ps1

@@ -298,7 +298,7 @@ if (Test-Path $pyEmbeddedExe) {
     if (-not $embeddedPipOk) {
         Write-Host '[WARN] pip still broken after backup copy; reinstalling pip with local get-pip.py...' -ForegroundColor Yellow
         if (Test-Path $getPipScript) {
-            & $pyEmbeddedExe $getPipScript --force-reinstall -i $pypiIndexUrl --trusted-host $pypiTrustedHost
+            & $pyEmbeddedExe $getPipScript --force-reinstall -i $pypiIndexUrl --trusted-host $pypiTrustedHost --no-warn-script-location
             $pipMissing = @($requiredPipFiles | Where-Object { -not (Test-Path $_) })
             if ($pipMissing.Count -eq 0) {
                 $embeddedPipOk = $true

+ 2 - 2
nodejs/dependences/arm64/nodejs-dependencies-install.js

@@ -165,7 +165,7 @@ while (currentMissing.length > 0 && retryCount < maxRetries) {
     for (const registry of registries) {
         log(`\nTrying ${registry.name} registry...`, 'cyan');
         // Run npm install with output visible (registry passed per command)
-        execSync(`npm install --registry=${registry.url} --no-audit --no-fund`, {
+        execSync(`npm install --registry=${registry.url} --no-audit --no-fund --loglevel=error`, {
             stdio: 'inherit',
             cwd: projectRoot
         });
@@ -192,7 +192,7 @@ while (currentMissing.length > 0 && retryCount < maxRetries) {
     if (!installSuccess) {
         // Final attempt with original registry
         log('\nTrying default npm registry...', 'cyan');
-        execSync('npm install --registry=https://registry.npmjs.org/ --no-audit --no-fund', {
+        execSync('npm install --registry=https://registry.npmjs.org/ --no-audit --no-fund --loglevel=error', {
             stdio: 'inherit',
             cwd: projectRoot
         });

+ 2 - 2
nodejs/dependences/x64/nodejs-dependencies-install.js

@@ -158,7 +158,7 @@ function main() {
     for (const registry of registries) {
         log(`Running npm install (registry: ${registry.name})...`, 'cyan');
         try {
-            execSync(`"${npmCmd}" install ${npmInstallPrefix} --registry=${registry.url} --no-audit --no-fund`, { stdio: 'inherit', cwd: projectRoot, env: process.env });
+            execSync(`"${npmCmd}" install ${npmInstallPrefix} --registry=${registry.url} --no-audit --no-fund --loglevel=error`, { stdio: 'inherit', cwd: projectRoot, env: process.env });
             installOk = true;
             log(`[OK] Installed using ${registry.name}`, 'green');
             break;
@@ -168,7 +168,7 @@ function main() {
     }
     if (!installOk) {
         log('Trying default npm registry...', 'cyan');
-        execSync(`"${npmCmd}" install ${npmInstallPrefix} --registry=https://registry.npmjs.org/ --no-audit --no-fund`, { stdio: 'inherit', cwd: projectRoot, env: process.env });
+        execSync(`"${npmCmd}" install ${npmInstallPrefix} --registry=https://registry.npmjs.org/ --no-audit --no-fund --loglevel=error`, { stdio: 'inherit', cwd: projectRoot, env: process.env });
     }
 
     const installed = getInstalledPackages();