My Sublime worked with Nodejs in order. I could press Alt-R and see the result from Node to Sublime. Then at some point I updated Sublime. I now have version 2.02 build 2221 and at some point I tried Alt-R and received this notorious message
'node' is not recognized as an internal or external command
But it worked, and what has changed?
The steps I took to fix this were to install git bash and then
$ git clone https://github.com/tanepiper/SublimeText-Nodejs.git $ cd SublimeText-Nodejs/ $ git checkout 095ba03344
In Sublime, I clicked Settings> Browse Packages. This opened Windows Explorer with the folder:
C:\Users\me\AppData\Roaming\Sublime Text 2\Packages
I replaced the contents of the Nodejs folder with the git version. Re-launched Sublime, and then Alt-R reappeared in life.
Other things that turned out to be irrelevant were changes to the Nodejs.sublime parameters file and interference with system environment variables. The only thing that worked was 095ba03344 , as described here https://github.com/tanepiper/SublimeText-Nodejs/pull/39
source share