Protractor 如何从源代码运行量角器

Protractor 如何从源代码运行量角器,protractor,Protractor,我从github克隆了量角器代码 有没有办法从源代码运行代码?文档中总是提到要使用npm安装来安装量角器,但我想运行最新的代码 有没有一种简单的方法可以做到这一点?npm安装在这个上下文中是为了安装量角器的本地依赖项 您只需在bin文件夹中运行量角器脚本 git clone https://github.com/angular/protractor.git cd protractor npm install cd bin/ ./protractor /path/to/e2e/e2e-conf

我从github克隆了量角器代码

有没有办法从源代码运行代码?文档中总是提到要使用npm安装来安装量角器,但我想运行最新的代码

有没有一种简单的方法可以做到这一点?

npm安装在这个上下文中是为了安装量角器的本地依赖项

您只需在bin文件夹中运行量角器脚本

git clone https://github.com/angular/protractor.git
cd protractor 
npm install

cd bin/
./protractor /path/to/e2e/e2e-conf.js