installing node modules globally code example Example: install npm package globally npm install package-name -g