Refactored script to execute global npm package installation on one line