I am using Linux 18 based on Ubunt 17.04. When I start rails assets:precompile, I get the following messageYarn executable was not detected in the system
When I follow the installation instructions, as in this Message , or on the Web page , I install the yarn successfully, but the rails continue to give me an error
I noticed that node.js has system packages for Linux Mint prior to the version 17.2, I tried to do all the instructions for the page Yarnand install manually node.js, which was already installed on my system.
The message does not actually explain the problem. If I run yarn --help, it works, and mine yarn --version-0.22
This is my Mint Linux system.
DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=18
DISTRIB_CODENAME=sarah
DISTRIB_DESCRIPTION="Linux Mint 18 Sarah"
NAME="Ubuntu"
VERSION="16.04 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
UBUNTU_CODENAME=xenial
cat: /etc/upstream-release: Is a directory
Refresh
echo $PATH /opt/yarn-0.22/bin, , /opt/yarn-0.22, , , PATH SETUP
Path Setup
If you chose manual installation, the following steps will add Yarn to path variable and run it from anywhere.
Note: your profile may be in your .profile, .bash_profile, .bashrc, .zshrc, etc.
Add this to your profile: export PATH="$PATH:/opt/yarn-[version]/bin" (the path may vary depending on where you extracted Yarn to)
In the terminal, log in and log out for the changes to take effect
To have access to Yarn’s executables globally, you will need to set up the PATH environment variable in your terminal. To do this, add export PATH="$PATH:`yarn global bin`" to your profile.