As example I will use pm2. I can't run the command pm2 on my nodenv nodejs installation. It will return:
$ pm2 -v
$ bash: pm2: command not found
further:
$ which pm2
does not return anything. What am I missing?
I installed it as the documentation suggested:
$ yarn global add pm2
Ok there are several pitfalls here:
yarn global
package installations: Github issue from 2018, looks like it has not been implementednpm -g
option you HAVE TO do nodenv rehash
in order for the command to work in bash.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.