question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

'npm start' error with protractor

See original GitHub issue

Trying to run quickstart npm start and get the following on Mac Pro Sierra v10.12.1. npm -v // 3.10.9 tsc -v // 2.1.4

I can run npm lite and server starts up, but any cli common with tsc (npm tsc, npm tsc:w) gets the errors below. I can run tsc outside the quickstart dir and everything works fine. I checked my node_modules permissions and seems correct. Any suggestions? Thanks

node_modules/protractor/built/browser.d.ts(260,37): error TS2503: Cannot find namespace 'webdriver'. node_modules/protractor/built/browser.d.ts(267,55): error TS2503: Cannot find namespace 'webdriver'. node_modules/protractor/built/browser.d.ts(267,78): error TS2503: Cannot find namespace 'webdriver'. node_modules/protractor/built/browser.d.ts(358,31): error TS2503: Cannot find namespace 'webdriver'. node_modules/protractor/built/browser.d.ts(369,26): error TS2503: Cannot find namespace 'webdriver'. node_modules/protractor/built/browser.d.ts(425,36): error TS2503: Cannot find namespace 'webdriver'. node_modules/protractor/built/ptor.d.ts(13,29): error TS2503: Cannot find namespace 'webdriver'.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:24 (4 by maintainers)

github_iconTop GitHub Comments

8reactions
jts-codecommented, Dec 20, 2016

Can confirm that on Windows the only needed change is changing this line package.json from

    "@types/selenium-webdriver": "^2.53.33"

to

    "@types/selenium-webdriver": "2.53.33"

Then an npm install and npm start should work like normal.

👏 @filipesilva @andresrinivasan

8reactions
nickJones67commented, Dec 20, 2016

instead of >npm start try >npm run lite

Read more comments on GitHub >

github_iconTop Results From Across the Web

Running npm as a script "npm run protractor" throw console ...
It gives following console error after running tests. npm ERR! Failed at the @ protractor script 'sudo protractor protractor.config.js -- ...
Read more >
protractor-errors - npm
A protractor runner that allows you to run errors from previous runs. ... Start using protractor-errors in your project by running `npm i ......
Read more >
Failed to npm run protractor · Issue #441 - GitHub
Greetings,. I have downgraded the node version to v.7.0.0 because i read that protractor had some issues with node v8+ . $ npm...
Read more >
NPM Run Test | Protractor Tutorial - YouTube
NPM Run Test | Protractor Tutorial - In this video, we are going to learn how to run the test script with the...
Read more >
cannot find module 'protractor' or its corresponding type ...
I tried to clean cache, to run npm i as Administrator, to remove node_modules and package-lock.json and run npm i as Administrator. Seems...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found