After installed fresh symfony 5.4 with
composer create-project symfony/website-skeleton myprojectname-sf5.4 ^5.4.9
I installed encore as mentioned in https://symfony.com/doc/current/frontend/encore/installation.html page:
composer require symfony/webpack-encore-bundle
then
yarn install
which returns this error :
error @symfony/webpack-encore@2.1.0: The engine "node" is incompatible with this module. \
Expected version "^12.13.0 || >=14.0.0". Got "10.19.0"