npm package modifcation and server port adjustment