yarn global add nodemon --prefix /usr/local
# the `nodemon` command is now available globally:
which nodemon
/usr/local/bin/nodemon
nodemon
$ npm install --save npm-install-global
yarn global <add/bin/list/remove/upgrade> [--prefix]
$ yarn global add xxx
yarn global add <package>
yarn global add <package...>