Skip to content

Commit 561cace

Browse files
committed
code suggestions
1 parent 0bbd08d commit 561cace

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

packages/create-astro/src/actions/dependencies.ts

+9
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,15 @@ export async function dependencies(
2626
start: `Dependencies installing with ${ctx.pkgManager}...`,
2727
end: 'Dependencies installed',
2828
while: () => {
29+
return Promise.reject('Unknown error').catch((e) => {
30+
error('error', e);
31+
error(
32+
'error',
33+
`Dependencies failed to install, please run ${color.bold(
34+
ctx.pkgManager + ' install'
35+
)} to install them manually after setup.`
36+
);
37+
});
2938
return install({ pkgManager: ctx.pkgManager, cwd: ctx.cwd }).catch((e) => {
3039
error('error', e);
3140
error(

0 commit comments

Comments
 (0)