Installation failed for raspbian on a pi

I tried several times to install nextcloudpi and the installation never complete.
1.write raspbian lite img on a 4gb sd card
2.put sd in the pi and ssh to it. command “curl -sSL | sudo bash”

it always stops here:

System config value trusted_domains => 5 set to string nextcloudpi.local
System config value mail_smtpmode set to string php
System config value mail_smtpauthtype set to string LOGIN
System config value mail_from_address set to string admin
System config value mail_domain set to string
Error: Could not download app calendar
pi@raspberrypi:~ $

This line seems to be in I looked up and there is a command “sudo -u www-data php /var/www/nextcloud/occ app:install calendar”
when I run this command manually it works and says app calendar installed!
How can I fix this and why doesn’t installation complete after that error?
Thank you in advanced.

Hi, did you try browsing to nextcloudpi.local to access your instance in the browser?