composer require nette/nette … is not enough
- Nicolas_K
- Member | 25
__FYI__
composer require nette/nette
as suggested here: https://nette.org/en/packages
results in composer.json as
BUT – that is not enough, it doesn't work
(leaves a blank screen without Tracy).
It has to be added:
(and – of course – composer update
).
Put together:
The first 6 keys (name, descr., keywords, type, license, minimus-stab.)
are not neccessary to get a result, but autoload
is.
(Same with nette/nette 3.1)
This enabled me finally to get my very minimalistic website work :))
- materix
- Backer | 85
Thanks, it think that is how Composer works.
You could also do
composer create-project nette/web-project path/to/install
as
described here: https://github.com/…/web-project.
That is what I usually do.
- Nicolas_K
- Member | 25
Yes with composer create-project nette/...
it copies the
composer.json
provided there.
The major hint in this respect is here:
https://doc.nette.org/…ces/composer#…
…which has to be kept in mind when ‘composing’ a project by hand.
Thank you!