mirror of
https://github.com/withastro/astro.git
synced 2024-12-23 21:53:55 -05:00
Fix create-astro
regression (#7086)
This commit is contained in:
parent
8d09a14a7b
commit
c5f1275e9d
2 changed files with 5 additions and 9 deletions
5
.changeset/nice-shrimps-search.md
Normal file
5
.changeset/nice-shrimps-search.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
'create-astro': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Fix create astro regression
|
|
@ -26,15 +26,6 @@ export async function dependencies(
|
||||||
start: `Dependencies installing with ${ctx.pkgManager}...`,
|
start: `Dependencies installing with ${ctx.pkgManager}...`,
|
||||||
end: 'Dependencies installed',
|
end: 'Dependencies installed',
|
||||||
while: () => {
|
while: () => {
|
||||||
return Promise.reject('Unknown error').catch((e) => {
|
|
||||||
error('error', e);
|
|
||||||
error(
|
|
||||||
'error',
|
|
||||||
`Dependencies failed to install, please run ${color.bold(
|
|
||||||
ctx.pkgManager + ' install'
|
|
||||||
)} to install them manually after setup.`
|
|
||||||
);
|
|
||||||
});
|
|
||||||
return install({ pkgManager: ctx.pkgManager, cwd: ctx.cwd }).catch((e) => {
|
return install({ pkgManager: ctx.pkgManager, cwd: ctx.cwd }).catch((e) => {
|
||||||
error('error', e);
|
error('error', e);
|
||||||
error(
|
error(
|
||||||
|
|
Loading…
Reference in a new issue