fixes for npm install -g