add support for npm install global mode