I was shifting my project from npm to yarn
first to remove npm
sudo rm -rf node_modules
sudo rm -rf package-lock.json
then run :
yarn
got through this issue
error hawk@0.10.2: The engine “node” is incompatible with this module. Expected version “0.8.x”. Got “10.21.0”error Found incompatible module.
The solution for this is run this command:
yarn install --ignore-engines