Fix `npm install` command

Move the `-g` flag after the command to ensure maximum compatibility
with various OS.