1. 程式人生 > >執行forever報command not found

執行forever報command not found

使用root使用者安裝forever:npm install -g forever。然後執行forever, 報錯command not found。
查了一下應該是forever目錄沒有配置在環境變數中。
npm list -g –depth 0檢視forever被安裝在哪個目錄下。
然後直接使用絕對路徑執行forever。