'"C:\Program Files\nodejs\npm"' is not recognized as an internal or external command

I just updated my cordova trying to add new platform plugin gives error,

Using cordova-fetch for cordova-android@6.2.3
Error: Failed to fetch platform cordova-android@6.2.3
Probably this is either a connection problem, or platform spec is incorrect.
Check your connection and platform name/version/URL.
Error: cmd: Command failed with exit code 1 Error output:
'"C:\Program Files\nodejs\npm"' is not recognized as an internal or external com
mand,
operable program or batch file.
1 Like

My advice: Get rid of your local nodejs installation and install https://github.com/coreybutler/nvm-windows. Then install node again via this. Will be much more stable and easier to upgrade etc. Then this problem should also go away.

Thanks for the response, I will try it out.