I am trying to set up Sublime Text 2 to have a build system that runs npm install
. My .sublime-build
file looks like this:
{
"cmd": ["npm", "install"],
"shell": true
}
However, when I try to build, I get the following error:
'node' is not recognized as an internal or external command,
operable program or batch file.
I also get a series of similar messages about doskey
, likely originating from a batch file that I have set to run when cmd.exe
is started (as demonstrated in this SO answer).
What is causing this problem? I'm not welded to this solution - I'm open to anything that will allow me to run npm install
from ST2.