mirror of
https://github.com/pnpm/pnpm.git
synced 2026-05-18 22:02:53 -04:00
fix(recursive): report prefix when one of the installs fail
This commit is contained in:
@@ -71,9 +71,14 @@ export default async (
|
||||
|
||||
for (const chunk of chunks) {
|
||||
await Promise.all(chunk.map((prefix: string) =>
|
||||
limitInstallation(() => {
|
||||
limitInstallation(async () => {
|
||||
const hooks = opts.ignorePnpmfile ? {} : requireHooks(prefix)
|
||||
return install({...installOpts, hooks, storeController, prefix})
|
||||
try {
|
||||
return await install({...installOpts, hooks, storeController, prefix})
|
||||
} catch (err) {
|
||||
err['prefix'] = prefix
|
||||
return err
|
||||
}
|
||||
}),
|
||||
))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user