I have npm installed globally and installed protractor globally as well. When I check for the node version it returns proper version, but when I am trying to check the version of protractor after installing it gives me the below error. can anyone help me with whats going wrong here?
protractor : The term 'protractor' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + protractor --version
You need to config the global protractor into
PATHenvironment variable through below two steps:install path/binintoPATHenvironment variableFor example the step 1 print out
xxx\yyy, you should addxxx\yyy\bin;intoPATHon Windows, Or addxxx\yyy\bin:on Linux.Important: try
protrator --versionin new cmd window, Don't try again in previous opened cmd window.