@pnpm/default-reporter
Advanced tools
Comparing version 2.0.2 to 2.1.0
@@ -37,2 +37,4 @@ "use strict"; | ||
return formatRecursiveCommandSummary(logObj['message']); | ||
case 'ERR_PNPM_BAD_TARBALL_SIZE': | ||
return reportBadTarballSize(err, logObj['message']); | ||
default: | ||
@@ -161,2 +163,22 @@ // Errors with known error codes are printed w/o stack trace | ||
} | ||
function reportBadTarballSize(err, msg) { | ||
return stripIndent ` | ||
${formatErrorSummary(err.message)} | ||
Seems like you have internet connection issues. | ||
Try running the same command again. | ||
If that doesn't help, try one of the following: | ||
- Set a bigger value for the \`fetch-retries\` config. | ||
To check the current value of \`fetch-retries\`, run \`pnpm get fetch-retries\`. | ||
To set a new value, run \`pnpm set fetch-retries <number>\`. | ||
- Set \`network-concurrency\` to 1. | ||
This change will slow down installation times, so it is recommended to | ||
delete the config once the internet connection is good again: \`pnpm config delete network-concurrency\` | ||
NOTE: You may also override configs via flags. | ||
For instance, \`pnpm install --fetch-retries 5 --network-concurrency 1\` | ||
`; | ||
} | ||
//# sourceMappingURL=reportError.js.map |
{ | ||
"name": "@pnpm/default-reporter", | ||
"version": "2.0.2", | ||
"version": "2.1.0", | ||
"description": "The default reporter of pnpm", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
108704
1506