全局安装pm2指令后仍然提示找不到pm2指令
来源:6-2 借助 pm2 让 Nodejs 服务常驻
奔跑的兔子123
2018-05-25

写回答
1回答
-
Scott
2018-05-27
先 source .bash_profile && source .bashrc 后,试试看,另外检查下 .bash_profile 和 .bashrc 里面有没有暴露 NVM 的 Dir 出来,类似这种失败,通常跟服务器的环境变量有关系
00
相似问题
全局安装pm2指令后仍然提示找不到pm2指令
来源:6-2 借助 pm2 让 Nodejs 服务常驻
奔跑的兔子123
2018-05-25

1回答
Scott
2018-05-27
先 source .bash_profile && source .bashrc 后,试试看,另外检查下 .bash_profile 和 .bashrc 里面有没有暴露 NVM 的 Dir 出来,类似这种失败,通常跟服务器的环境变量有关系
相似问题