If you are using Windows 7 etc.
When adding a platform for example browser, I've got this error
$ cordova platform add browser
Adding browser project...
Running command: cmd "/s /c "C:\Users\UserName\.cordova\lib\npm_cache\cordova-browser\4.1.0\package\bin\create.bat D:\localhost\cordova\testing\platforms\browser io.cordova.hellocordova HelloCordova""
Error: cmd: Command failed with exit code ENOENT
The error occur when the C:\Windows\System32 is missing in the environment variable.
So in my case for some reason the C:\Windows\System32 is removed, so I need to put it back in the environment variable
Variable
PATH
Value
C:\Windows\System32
Once added close your cmd and run it again.
That should be fine!
No comments:
Post a Comment