ignore-engines
tells the package manager to ignore the engines filed in the package.json file when installing packages. So when you set ignore-engine to true, you are basically telling Yarn to ignore this field and proceed with the installation regardless of the Node.js.
engines
allows package authors to state which node engines are required for the package to work. Basically, which node version is needed. If you ignore this guidance, you run the risk of installing a package that won't work with the version of node that you are using because it relies on a feature that your version of node does not support.
So I find that the best solution is to update the Node version to the recommended version, as follows:
Uninstall the old version of Node.js. This command will remove the old Node.js package and any associated dependencies.
sudo apt autoremove nodejs
Add a different repository source. This will add the NodeSource package repository to the system’s sources list.
curl -fsSL https://deb.nodesource.com/setup_14.x | sudo -E bash -
Install Node.js from the new repository.
sudo apt-get install -y nodejs