背景:今日重新從svn導(dǎo)出項目,發(fā)現(xiàn)端口號始終不是配置的端口,且每次啟動端口都不一致,數(shù)值還是5位數(shù)

image.png

image.png
但是本地的項目卻沒有這個問題
癥結(jié):經(jīng)過百度,19號portfinder版本更新至1.0.22導(dǎo)致
解決辦法:執(zhí)行 npm install portfinder@1.0.21
或者將package.json中的"portfinder": "^1.0.13"----更改為"portfinder": "1.0.21",重新install一下。