在@Node安裝成功的情況下,(node -v查看版本號可看是否安裝成功),"Win+R" =》輸入"cmd" =》然后復(fù)制執(zhí)行以下命令
如果網(wǎng)速卡,請先安裝淘寶鏡像
npm install -g cnpm --registry=https://registry.npm.taobao.org
安裝 nodemon
npm install -g nodemon (即可全局安裝 nodemon )
安裝PM2
npm config get prefix (liunx os x 系統(tǒng)需執(zhí)行)
npm install -g pm2
pm2 list (檢測pm2 命令)