Bugfix for publishing glogon port.
Put port updating before cnpm installing.