Put port updating before cnpm installing.