Nextcloud App tutorial: "make composer" error

I am trying to complete the tutorial at:
GitHub - nextcloud/app-tutorial: Tutorial app which is built in the tutorial
when I run

make composer

I get an error:

make: *** No rule to make target 'composer'.  Stop.

If I go to ./notestutorial ja attempt make again I get:

No composer command available, downloading a copy from the web
mkdir -p /var/www/nextcloud/apps/notestutorial/build/tools
curl -sS https://getcomposer.org/installer | php
Cannot load Xdebug - it was already loaded
All settings correct for using Composer
The installation directory "/var/www/nextcloud/apps/notestutorial" is not writable
make: *** [Makefile:19: composer] Error 1

When runnin “sudo make composer” I get a stern warning:

No composer command available, downloading a copy from the web
mkdir -p /var/www/nextcloud/apps/notestutorial/build/tools
curl -sS https://getcomposer.org/installer | php
Cannot load Xdebug - it was already loaded
All settings correct for using Composer
Downloading...

Composer (version 2.2.6) successfully installed to: /var/www/nextcloud/apps/notestutorial/composer.phar
Use it: php composer.phar

mv composer.phar /var/www/nextcloud/apps/notestutorial/build/tools
php /var/www/nextcloud/apps/notestutorial/build/tools/composer.phar install --prefer-dist
Cannot load Xdebug - it was already loaded
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Continue as root/super user [yes]? no

What should I do to get the Nextcloud App Tutorial installed?