angular.js npm run protractor Ubuntu 14.04 error

When going through angular.js tutorial I’ve faced issue when running end-to-end tests with protractor.

npm run protractor

command didn’t work, even after running as advised following commands:

npm install

npm run update-webdriver

In order to fix this issue I’ve installed chromium-webbrowser and also removed protractor entry in package.json file. After that I’ve run:

npm install protractor –save-dev

and next time after running protractor everything worked as expected