Next, install Node (npm will be installed with Node): brew install node To test out your Node and npm install, try installing Grunt (you might be asked to run with sudo): npm install -g grunt-cli If that worked then congratulations — you’ve installed Node.js, npm, and Grunt. Install node.js for macOS or Windows. Assuming you’ve already installed Node.js, create a directory to hold your application, and make that your working directory. Prerequisites. And now the orphan npm works using the node@6 that I installed.