mirror of
https://github.com/pnpm/pnpm.git
synced 2026-03-30 13:02:03 -04:00
fix: remove double wording in registries mismatch error message
close #2766
This commit is contained in:
5
.changeset/khaki-cobras-retire.md
Normal file
5
.changeset/khaki-cobras-retire.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@pnpm/get-context": patch
|
||||
---
|
||||
|
||||
Fix text in registries mismatch error message.
|
||||
@@ -254,7 +254,7 @@ async function validateModules (
|
||||
await Promise.all(projects.map(purgeModulesDirsOfImporter))
|
||||
return { purged: true }
|
||||
}
|
||||
throw new PnpmError('REGISTRIES_MISMATCH', `This modules directory was created using the following registries configuration: ${JSON.stringify(modules.registries)}. The current configuration is ${JSON.stringify(opts.registries)}. To recreate recreate the modules directory using the new settings, run "pnpm install".`)
|
||||
throw new PnpmError('REGISTRIES_MISMATCH', `This modules directory was created using the following registries configuration: ${JSON.stringify(modules.registries)}. The current configuration is ${JSON.stringify(opts.registries)}. To recreate the modules directory using the new settings, run "pnpm install".`)
|
||||
}
|
||||
if (purged && !rootProject) {
|
||||
await purgeModulesDirsOfImporter({
|
||||
|
||||
Reference in New Issue
Block a user