javascript - Protractor/node versions compatibility -


i'm using protractor e2e testing , grunt-task-runner package run tests.

in package.json file have:

{   ...,   "grunt-protractor-runner": "^2.1.2",   ...,   "protractor": "^2.5.1",   ... } 

and in protractorconfig.js use framework: 'jasmine2'

my intent use protractor 2.5.1 + grunt-protractor-runner 2.1.2 node version 0.12.9, , use protractor 3.0.0 + grunt-protractor-runner 3.0.0 node version >=4.x.

the fact is, when run npm install either using node version 0.12.9 or 5.4.1, have same protractor version in node_modules folder - 2.5.1 , corresponding grunt-protractor-runner.

what doing wrong? ideas highly appreciated.

you try using engines field:

{ "engines" : { "node" : ">=0.12.9 < 4" } } 

but don't think can specify different versions of packages install depending on node version.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -