fix done message & npm missed global flag