Categories
JavaScript Answers

How 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?

Spread the love

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.

By John Au-Yeung

Web developer specializing in React, Vue, and front end development.

Leave a Reply

Your email address will not be published. Required fields are marked *