Fixbug of when current not npm.cmd print waring message.