'Protractor' is not recognized as an internal or external command

'Protractor' is not recognized as an internal or external command



In this article, I am going to discuss one of the common problems that every newbie face while trying to work with protractor first time.

To understand the problem statement and solution let’s get started with the protractor installation.



As we all are aware for running protractor one of the prerequisites is having node.js installed in the machine which can be installed using this link.

After installing node modules




Now for installing Protractor globally, we need to use the below commands.


Now if we tried to check the protractor version Sometimes it happens, we get an error message like below


‘protractor’ is not recognized as an internal or external command, operable program or batch file.



This issue usually occurs because of the path issue on the windows machine and we need to make sure that the correct path of a node is configured in the windows machine.




To fix this issue we need to follow 

PATH: C:\Program Files\nodejs;
C:\Users<<user>>\AppData\Roaming\npm; 




NODE_PATH: C:\Users\<<user>>\AppData\Roaming\npm\node_modules


Now if we try to check the protractor version it will display the correct information





SHARE THIS

Author:

My Name is Ankur Jain and I am currently working as Automation Test Architect.I am ISTQB Certified Test Manager,Certified UI Path RPA Developer as well as Certified Scrum Master with total 12 years of working experience with lot of big banking clients around the globe.I love to Design Automation Testing Frameworks with Selenium,Appium,Protractor,Cucumber,Rest-Assured, Katalon Studio and currently exploring lot in Dev-OPS as well. I am currently staying in Mumbai, Maharashtra. Please Connect with me through Contact Us page of this website.

Previous Post
Next Post
September 14, 2020 at 11:54 PM

Thanks Ankur, Great article, This really helped me solve my issue. thanks a ton.

Reply
avatar
it
December 13, 2021 at 10:30 AM

I am glad that I saw this post. It is informative blog for us and we need this type of blog thanks for share this blog, Keep posting such instructional blogs and I am looking forward for your future posts. Python Projects for Students Data analytics is the study of dissecting crude data so as to make decisions about that data. Data analytics advances and procedures are generally utilized in business ventures to empower associations to settle on progressively Python Training in Chennai educated business choices. In the present worldwide commercial center, it isn't sufficient to assemble data and do the math; you should realize how to apply that data to genuine situations such that will affect conduct. In the program you will initially gain proficiency with the specialized skills, including R and Python dialects most usually utilized in data analytics programming and usage; Python Training in Chennai at that point center around the commonsense application, in view of genuine business issues in a scope of industry segments, for example, wellbeing, promoting and account. Project Center in Chennai

Reply
avatar
Anonymous
March 9, 2022 at 9:21 PM

Which is best tool to automate Angular 12 Application

Reply
avatar