I am using Linux 18 based on Ubunt 17.04.
When I run rails assets:precompile
I get the following message Yarn executable was not detected in the system
yarn is node package manager yarn
you have to install it as here instrauction installation guide If you have node and npm you can install it via
npm install yarn -g
If you dont have
npm
in your machine go to this link and installnode
which will also installnpm
If you want to manage multiple version node like
RVM
then you need to checkout this link