Change a mounting Node, where the installed version 9.0, other versions mounted directly to find the appropriate version can https://deb.nodesource.com/setup_9.x
1.sudo apt-get remove nodejs --purge
2.curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash -
3.sudo apt-get update
4.sudo apt-get install -y nodejs
5.node -v
6.npm -v
Second installation pm2, execute the following command in the node to complete the installation:
npm install pm2 -g