zsh: command not found: live-serverSOLUTION:$ export PATH=$PATH:/home/user/.yarn/bin/
Today my attempt to install the live-server package in a Linux Mint Sylvia (Ubuntu Xenial) box using yarn failed. The installation went just fine, with just some info messages:
$ yarn global add live-server
yarn global v1.3.2
[1/4] Resolving packages...
[2/4] Fetching packages...
warning Pattern ["object-assign@latest"] is trying to unpack in the same destination "/home/dbkreling/.cache/yarn/v1/npm-object-assign-4.1.1-2109adc7965887cfc05cbbd442cac8bfbb360863" as pattern ["object-assign@^4.1.0","object-assign@^4"]. This could result in a non deterministic behavior, skipping.
info email@example.com: The platform "linux" is incompatible with this module.
info "firstname.lastname@example.org" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Installed "email@example.com" with binaries:
Done in 1.98s
Cool! And then..
zsh: command not found: live-server
Digging it further I found it (no pun intended) hidden in my home directory: