Here is the best practice way of setting up a command shortcut for use in your Roots project directory on windows. I recommend this, so your command prompt environment is setup correctly for use of node.js and the npm command. If you installed node.js correctly this is not really needed, but ensures a proper enviroment and quick start.
The nice thing about this is that you can put these shortcuts anywhere ( I keep them on my desktop for my active projects and store the original copy in the project for later quick copy to anywhere).
Create a Shortcut, right click >> properties >> shorcut tab
Make Target: value as below (replace directories to follow your install dirs)
Make the Start in: value as below (replace with your path to the roots template in each project)
C:\WordPress\Bootstrap\wp-content\themes\roots
Now you are ready to run your npm commands and grunt.
You can even change icon and colors for each project shortcut.
You can also change how you run the window (ie maximized, etc)
When you double-click the shortcut the nodejs\nodevars.bat will run and print a message telling you something like:
“Your environment has been set up for using Node.js 0.10.18 (x64) and npm.”
You could run this shortcut command as administrator also, but not really needed.
I don’t waist time creating bat files for “npm install” and “grunt watch”, because they are as easy to type as typing in the batch command name.
Also npm install is only ran once to get grunt loaded in your node_modules folder for each roots theme anyway.