|
@@ -158,7 +158,7 @@ function main() {
|
|
|
for (const registry of registries) {
|
|
for (const registry of registries) {
|
|
|
log(`Running npm install (registry: ${registry.name})...`, 'cyan');
|
|
log(`Running npm install (registry: ${registry.name})...`, 'cyan');
|
|
|
try {
|
|
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;
|
|
installOk = true;
|
|
|
log(`[OK] Installed using ${registry.name}`, 'green');
|
|
log(`[OK] Installed using ${registry.name}`, 'green');
|
|
|
break;
|
|
break;
|
|
@@ -168,7 +168,7 @@ function main() {
|
|
|
}
|
|
}
|
|
|
if (!installOk) {
|
|
if (!installOk) {
|
|
|
log('Trying default npm registry...', 'cyan');
|
|
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();
|
|
const installed = getInstalledPackages();
|