npm config set registry https://registry.npmmirror.com # 设置镜像
npm config set registry https://registry.npmjs.org # 清除镜像,恢复
npm config set ELECTRON_MIRROR https://npmmirror.com/mirrors/electron/ # 设置 electron 镜像
# 安装 yarn https://yarnpkg.com/getting-started/install
npm install -g yarn
# 安装 pm2 https://pm2.keymetrics.io/docs/usage/quick-start/
npm install pm2@latest -g
# or
yarn global add pm2