R
R
Roman Rodionov2016-10-18 21:54:01
Angular
Roman Rodionov, 2016-10-18 21:54:01

How to run protractor from windows command line?

Installed protractor globally: npm i -g protractor.
On the command line, when you type protractor --version, it says that it is not an internal or external command.
I run node.js command promt, protractor finds it there.
I enter in the command line "node", then "protractor --version", writes "protractor is not defined".
How to run protractor from cmd?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Nicholas, 2016-10-18
@Romashishka

1. put a normal console.
Or at least powershell.
2. check your PATH variable

E
Elena, 2016-11-19
@Elena91

install git bash, I solved this issue with it

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question