How to fix Yarn packages are out of date in terminal?

Yarn packages are out of date! Firstly, you should check Yarn version, use this command: yarn –version If the version is less than 1.21.1, Yarn needs update, use command: curl –compressed -o- -L https://yarnpkg.com/install.sh | bash and run command: yarn install If that doesn’t help, try delete directory node_modules and agan run command yarn install.

How to restart postgres in Ubuntu?

If you have Ubuntu 16.04 use next command to restart Postgres: sudo service postgresql restart If you have Ubuntu 18.04 use next command to restart Postgres: sudo systemctl restart postgresql.service If you want to know the status of Postgres uses the next command: systemctl status postgresql.service You have to see something like this: