To fix ‘node’ is not recognized as an internal or an external command, operable program or batch file error while using Phonegap/Cordova with JavaScript, we add the Node.js executable directory to the PATH
environment variable.
For instance, we run
SET PATH=C:\Program Files\Nodejs;%PATH%
to add the Node.js excutable directory to the PATH
environment variable on Windows with the SET
command.