phonegap plugins - 'cordova' is not recognized as an internal or external command -
i trying install cordova 5.1.1 version using node.js, command line interface.
cordova got installed on machine, not able use cordova command. when list packages, can able see installed cordova cordova, can not run command create project.
system config : os : windows 8, npm version : 1.3.21, cordova version : 5.1.
error message
c:>cordova
'cordova' not recognized internal or external command, operable program or batch file.
need set environment variable.
start -> control panel -> system , security -> system -> environment variables
or
mycomputer -> right click -> properties -> advance system settings -> environment variables
under user variables youruser:
path: %systemroot%\system32;%systemroot%;%systemroot%\system32\wbem;%systemroot% \system32\windowspowershell\v1.0\;c:\users\user1\appdata\roaming\npm`
temp: %userprofile%\appdata\local\temp simple copy pasting wont work.
if still not getting need reset/create dword
1.click start menu , type "regedit" on search box. launch windows registry editor program.
2.enter following registry entry: hkey_current_user\software\microsoft\windows script host\settings
3.select "enabled" entry in right side window. if entry there, right-click , select "new" followed "dword value." name value "enabled."
4.right-click "enabled" entry , click "modify."
5.change number in "value" box "1." re-enable wsh.
6.close opened cmd windows , open new window.
Comments
Post a Comment