`yarn global add` results in command not found
On a fresh Ubuntu 18.04 install: if you install yarn
as the installation instructions recommend, and then run yarn global add pubsweet
(according to the getting started guide), and all goes seemingly well:
success Installed "pubsweet@5.1.5" with binaries:
- pubsweet
You still won't be able to run pubsweet
(command not found), because the yarn global bin
path is not in PATH, by e.g. editing your .bashrc
to say:
export PATH="$(yarn global bin):$PATH"
This is not an issue with PubSweet, but a yarn requirement we should document.