nuwan gamage
nuwan gamage

Reputation: 1

webdriver-manager is not recognized as the name of a cmdlt

When I set up a protractor test suite I got this error in visual code terminal :

PS C:\Users\nga\Documents\GitHub\ASPIT\Timeline\protractor\exampleTypescript> webdriver-manager start

webdriver-manager : The term 'webdriver-manager' 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 + webdriver-manager start + ~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (webdriver-manager:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException

Upvotes: 0

Views: 4758

Answers (1)

tehbeardedone
tehbeardedone

Reputation: 2858

It looks like you don't have webdriver-manager installed globally. That is why you are getting this message. You will need to install it globally or create a script in your package.json to run this command.

npm install -g webdriver-manager

If you only want it to be installed locally, add a script to your package.json

scripts: {
    "webdriver:start": "webdriver-manager start"
}

And then run the script from the command line

npm run webdriver:start

Upvotes: 1

Related Questions