npm error - Cannot find module './selenium-webdriver/lib/input'How do I resolve “Cannot find module” error using Node.js?How do you prevent install of “devDependencies” NPM modules for Node.js (package.json)?Find the version of an installed npm packageHow to uninstall npm modules in node js?npm throws error without sudoUnknown compiler option 'files' launching ./node_modules/.bin/ng-xi18nAngular 5 ,Three Js errornpm ERR! notarget No matching version found for jasmine-core@~2.9.0What is wrong with this logfile., Can anybody please point me to the right direction?ERROR TypeError: this._document.createElement is not a function angular

How would a village use its river that it shares with another village downstream?

How to create a list of dictionaries from a dictionary with lists of different lengths

How flexible are number-of-pages submission guidelines for conferences?

Leaving wiggling room for your characters while avoiding contradictions

Is there a sentence that begins with “them”?

How can "life" insurance prevent the cheapening of death?

CBP interview, how serious should I take it?

Why would "an mule" be used instead of "a mule"?

How should we understand "unobscured by flying friends" in this context?

What was the first LISP compiler?

Which ping implementation is cygwin using?

Why was "leaping into the river" a valid trial outcome to prove one's innocence?

How to make your response cachable by browser?

How does Vivi differ from other Black Mages?

Was Robin Hood's point of view ethically sound?

Usage of Offrir and Donner

Why does F + F' = 1?

Is there a basic list of ways in which a low-level Rogue can get advantage for sneak attack?

Do any aircraft carry boats?

What causes this bloom with an old telephoto lens?

How to progress with CPLEX/Gurobi

SCOTUS - Can Congress overrule Marbury v. Madison by statute?

What are the advantages and disadvantages of Preprepints.org compared with arXiv?

How can I protect myself in case of a human attack like the murders of the hikers Jespersen and Ueland in Morocco?



npm error - Cannot find module './selenium-webdriver/lib/input'


How do I resolve “Cannot find module” error using Node.js?How do you prevent install of “devDependencies” NPM modules for Node.js (package.json)?Find the version of an installed npm packageHow to uninstall npm modules in node js?npm throws error without sudoUnknown compiler option 'files' launching ./node_modules/.bin/ng-xi18nAngular 5 ,Three Js errornpm ERR! notarget No matching version found for jasmine-core@~2.9.0What is wrong with this logfile., Can anybody please point me to the right direction?ERROR TypeError: this._document.createElement is not a function angular






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















After I updated my Angular project's version from 5 to 7, I was getting a lot of vulnerabilities, to fix it - I ran all the commands that was suggested in the "npm audit" and all the vulnerabilities was fixed.



But now when I run:



ng serve


I get this error:




ERROR in node_modules/protractor/built/ptor.d.ts(33,17): error TS2307: Cannot find module './selenium-webdriver/lib/input'.




Edit



If I get in to the errors sources I can see the problem line:



// node_modules/protractor/built/ptor.d.ts
Key: import("./selenium-webdriver/lib/input").IKey;


and if I change the line to:



 Key: import("../../selenium-webdriver/lib/input").IKey;


it's fix the error.



I guess it's a versions issue, but now remains to find out what the correct versions.



This is my package.json file:




"name": "test",
"version": "1.0.0",
"license": "MIT",
"scripts":
"ng": "ng",
"start": "ng serve",
"build": "ng build --prod",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
,
"private": true,
"dependencies":
"@angular-devkit/core": "7.3.6",
"@angular/animations": "7.2.11",
"@angular/common": "7.2.11",
"@angular/compiler": "7.2.11",
"@angular/core": "7.2.11",
"@angular/forms": "7.2.11",
"@angular/http": "7.2.11",
"@angular/platform-browser": "7.2.11",
"@angular/platform-browser-dynamic": "7.2.11",
"@angular/router": "7.2.11",
"core-js": "^2.4.1",
"rxjs": "^6.4.0",
"selenium-webdriver": "^4.0.0-alpha.1",
"tslib": "^1.9.0",
"zone.js": "^0.8.29"
,
"devDependencies":
"@angular-devkit/build-angular": "^0.13.7",
"@angular/cli": "7.3.6",
"@angular/compiler-cli": "7.2.11",
"@angular/language-service": "7.2.11",
"@types/jasmine": "~2.5.53",
"@types/jasminewd2": "~2.0.2",
"@types/node": "~6.0.60",
"codelyzer": "^4.0.1",
"jasmine-core": "~2.6.2",
"jasmine-spec-reporter": "~4.1.0",
"karma": "^4.0.1",
"karma-chrome-launcher": "~2.1.1",
"karma-cli": "~1.0.1",
"karma-coverage-istanbul-reporter": "^1.2.1",
"karma-jasmine": "~1.1.0",
"karma-jasmine-html-reporter": "^0.2.2",
"protractor": "^6.0.0",
"ts-node": "~3.2.0",
"tslint": "~5.7.0",
"typescript": "3.2.4"
,
"description": "This project was generated with [Angular CLI]
(https://github.com/angular/angular-cli) version 1.6.3.",
"main": "/",
"repository":
"type": "git",
"url": "/"
,
"keywords": [
"/"
],
"author": "/"



Any ideas why?










share|improve this question


























  • Could you show us your package.json file? This would be useful in showing us what dependencies you currently have.

    – Edric
    Mar 28 at 8:23











  • see my edit please

    – levi
    Mar 28 at 8:27

















0















After I updated my Angular project's version from 5 to 7, I was getting a lot of vulnerabilities, to fix it - I ran all the commands that was suggested in the "npm audit" and all the vulnerabilities was fixed.



But now when I run:



ng serve


I get this error:




ERROR in node_modules/protractor/built/ptor.d.ts(33,17): error TS2307: Cannot find module './selenium-webdriver/lib/input'.




Edit



If I get in to the errors sources I can see the problem line:



// node_modules/protractor/built/ptor.d.ts
Key: import("./selenium-webdriver/lib/input").IKey;


and if I change the line to:



 Key: import("../../selenium-webdriver/lib/input").IKey;


it's fix the error.



I guess it's a versions issue, but now remains to find out what the correct versions.



This is my package.json file:




"name": "test",
"version": "1.0.0",
"license": "MIT",
"scripts":
"ng": "ng",
"start": "ng serve",
"build": "ng build --prod",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
,
"private": true,
"dependencies":
"@angular-devkit/core": "7.3.6",
"@angular/animations": "7.2.11",
"@angular/common": "7.2.11",
"@angular/compiler": "7.2.11",
"@angular/core": "7.2.11",
"@angular/forms": "7.2.11",
"@angular/http": "7.2.11",
"@angular/platform-browser": "7.2.11",
"@angular/platform-browser-dynamic": "7.2.11",
"@angular/router": "7.2.11",
"core-js": "^2.4.1",
"rxjs": "^6.4.0",
"selenium-webdriver": "^4.0.0-alpha.1",
"tslib": "^1.9.0",
"zone.js": "^0.8.29"
,
"devDependencies":
"@angular-devkit/build-angular": "^0.13.7",
"@angular/cli": "7.3.6",
"@angular/compiler-cli": "7.2.11",
"@angular/language-service": "7.2.11",
"@types/jasmine": "~2.5.53",
"@types/jasminewd2": "~2.0.2",
"@types/node": "~6.0.60",
"codelyzer": "^4.0.1",
"jasmine-core": "~2.6.2",
"jasmine-spec-reporter": "~4.1.0",
"karma": "^4.0.1",
"karma-chrome-launcher": "~2.1.1",
"karma-cli": "~1.0.1",
"karma-coverage-istanbul-reporter": "^1.2.1",
"karma-jasmine": "~1.1.0",
"karma-jasmine-html-reporter": "^0.2.2",
"protractor": "^6.0.0",
"ts-node": "~3.2.0",
"tslint": "~5.7.0",
"typescript": "3.2.4"
,
"description": "This project was generated with [Angular CLI]
(https://github.com/angular/angular-cli) version 1.6.3.",
"main": "/",
"repository":
"type": "git",
"url": "/"
,
"keywords": [
"/"
],
"author": "/"



Any ideas why?










share|improve this question


























  • Could you show us your package.json file? This would be useful in showing us what dependencies you currently have.

    – Edric
    Mar 28 at 8:23











  • see my edit please

    – levi
    Mar 28 at 8:27













0












0








0








After I updated my Angular project's version from 5 to 7, I was getting a lot of vulnerabilities, to fix it - I ran all the commands that was suggested in the "npm audit" and all the vulnerabilities was fixed.



But now when I run:



ng serve


I get this error:




ERROR in node_modules/protractor/built/ptor.d.ts(33,17): error TS2307: Cannot find module './selenium-webdriver/lib/input'.




Edit



If I get in to the errors sources I can see the problem line:



// node_modules/protractor/built/ptor.d.ts
Key: import("./selenium-webdriver/lib/input").IKey;


and if I change the line to:



 Key: import("../../selenium-webdriver/lib/input").IKey;


it's fix the error.



I guess it's a versions issue, but now remains to find out what the correct versions.



This is my package.json file:




"name": "test",
"version": "1.0.0",
"license": "MIT",
"scripts":
"ng": "ng",
"start": "ng serve",
"build": "ng build --prod",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
,
"private": true,
"dependencies":
"@angular-devkit/core": "7.3.6",
"@angular/animations": "7.2.11",
"@angular/common": "7.2.11",
"@angular/compiler": "7.2.11",
"@angular/core": "7.2.11",
"@angular/forms": "7.2.11",
"@angular/http": "7.2.11",
"@angular/platform-browser": "7.2.11",
"@angular/platform-browser-dynamic": "7.2.11",
"@angular/router": "7.2.11",
"core-js": "^2.4.1",
"rxjs": "^6.4.0",
"selenium-webdriver": "^4.0.0-alpha.1",
"tslib": "^1.9.0",
"zone.js": "^0.8.29"
,
"devDependencies":
"@angular-devkit/build-angular": "^0.13.7",
"@angular/cli": "7.3.6",
"@angular/compiler-cli": "7.2.11",
"@angular/language-service": "7.2.11",
"@types/jasmine": "~2.5.53",
"@types/jasminewd2": "~2.0.2",
"@types/node": "~6.0.60",
"codelyzer": "^4.0.1",
"jasmine-core": "~2.6.2",
"jasmine-spec-reporter": "~4.1.0",
"karma": "^4.0.1",
"karma-chrome-launcher": "~2.1.1",
"karma-cli": "~1.0.1",
"karma-coverage-istanbul-reporter": "^1.2.1",
"karma-jasmine": "~1.1.0",
"karma-jasmine-html-reporter": "^0.2.2",
"protractor": "^6.0.0",
"ts-node": "~3.2.0",
"tslint": "~5.7.0",
"typescript": "3.2.4"
,
"description": "This project was generated with [Angular CLI]
(https://github.com/angular/angular-cli) version 1.6.3.",
"main": "/",
"repository":
"type": "git",
"url": "/"
,
"keywords": [
"/"
],
"author": "/"



Any ideas why?










share|improve this question
















After I updated my Angular project's version from 5 to 7, I was getting a lot of vulnerabilities, to fix it - I ran all the commands that was suggested in the "npm audit" and all the vulnerabilities was fixed.



But now when I run:



ng serve


I get this error:




ERROR in node_modules/protractor/built/ptor.d.ts(33,17): error TS2307: Cannot find module './selenium-webdriver/lib/input'.




Edit



If I get in to the errors sources I can see the problem line:



// node_modules/protractor/built/ptor.d.ts
Key: import("./selenium-webdriver/lib/input").IKey;


and if I change the line to:



 Key: import("../../selenium-webdriver/lib/input").IKey;


it's fix the error.



I guess it's a versions issue, but now remains to find out what the correct versions.



This is my package.json file:




"name": "test",
"version": "1.0.0",
"license": "MIT",
"scripts":
"ng": "ng",
"start": "ng serve",
"build": "ng build --prod",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
,
"private": true,
"dependencies":
"@angular-devkit/core": "7.3.6",
"@angular/animations": "7.2.11",
"@angular/common": "7.2.11",
"@angular/compiler": "7.2.11",
"@angular/core": "7.2.11",
"@angular/forms": "7.2.11",
"@angular/http": "7.2.11",
"@angular/platform-browser": "7.2.11",
"@angular/platform-browser-dynamic": "7.2.11",
"@angular/router": "7.2.11",
"core-js": "^2.4.1",
"rxjs": "^6.4.0",
"selenium-webdriver": "^4.0.0-alpha.1",
"tslib": "^1.9.0",
"zone.js": "^0.8.29"
,
"devDependencies":
"@angular-devkit/build-angular": "^0.13.7",
"@angular/cli": "7.3.6",
"@angular/compiler-cli": "7.2.11",
"@angular/language-service": "7.2.11",
"@types/jasmine": "~2.5.53",
"@types/jasminewd2": "~2.0.2",
"@types/node": "~6.0.60",
"codelyzer": "^4.0.1",
"jasmine-core": "~2.6.2",
"jasmine-spec-reporter": "~4.1.0",
"karma": "^4.0.1",
"karma-chrome-launcher": "~2.1.1",
"karma-cli": "~1.0.1",
"karma-coverage-istanbul-reporter": "^1.2.1",
"karma-jasmine": "~1.1.0",
"karma-jasmine-html-reporter": "^0.2.2",
"protractor": "^6.0.0",
"ts-node": "~3.2.0",
"tslint": "~5.7.0",
"typescript": "3.2.4"
,
"description": "This project was generated with [Angular CLI]
(https://github.com/angular/angular-cli) version 1.6.3.",
"main": "/",
"repository":
"type": "git",
"url": "/"
,
"keywords": [
"/"
],
"author": "/"



Any ideas why?







node.js angular selenium-webdriver npm






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited May 28 at 21:12









halfer

15.3k7 gold badges63 silver badges128 bronze badges




15.3k7 gold badges63 silver badges128 bronze badges










asked Mar 28 at 8:00









levilevi

2021 gold badge3 silver badges14 bronze badges




2021 gold badge3 silver badges14 bronze badges















  • Could you show us your package.json file? This would be useful in showing us what dependencies you currently have.

    – Edric
    Mar 28 at 8:23











  • see my edit please

    – levi
    Mar 28 at 8:27

















  • Could you show us your package.json file? This would be useful in showing us what dependencies you currently have.

    – Edric
    Mar 28 at 8:23











  • see my edit please

    – levi
    Mar 28 at 8:27
















Could you show us your package.json file? This would be useful in showing us what dependencies you currently have.

– Edric
Mar 28 at 8:23





Could you show us your package.json file? This would be useful in showing us what dependencies you currently have.

– Edric
Mar 28 at 8:23













see my edit please

– levi
Mar 28 at 8:27





see my edit please

– levi
Mar 28 at 8:27












4 Answers
4






active

oldest

votes


















0
















It looks like the problem is with the package with @types:



https://github.com/angular/protractor/issues/5192



Maybe try use previous version for example: @types/selenium-webdriver@2.53.33






share|improve this answer

























  • i will need to remove before the "selenium-webdriver"?

    – levi
    Mar 28 at 8:22











  • probably not but if this not work you can install previus version for "selenium-webdriver" too

    – Eutrepe
    Mar 28 at 8:24











  • it's seems like the error actually fixed. but now another errors come. like ERROR in node_modules/protractor/built/driverProviders/local.d.ts(1,10): error TS2305: Module '"selenium-webdriver/remote"' has no exported member 'SeleniumServer'

    – levi
    Mar 28 at 8:38












  • Try maybe with other version: npmjs.com/package/@types/selenium-webdriver?activeTab=versions

    – Eutrepe
    Mar 28 at 8:53











  • i try another versions but it's steel not work. please see my edit.

    – levi
    Mar 28 at 9:14


















0
















  1. Backup your code including node_modules folder

  2. Remove node_modules folder and package-lock.json file


  3. Run the following command in root folder of the application



    npm i

    ng serve






share|improve this answer



























  • Why would you want to back up your code now instead of always backing up your code with some form of Git service like GitHub?

    – Edric
    Mar 28 at 8:22












  • Backup Code -> Copy the existing code folder into another location in your system

    – Vinodh Ram
    Mar 28 at 8:26


















0
















Can you try these two commands in terminal to ensure that all the packages are installed:



npm i selenium-webdriver --save and npm i



which is also same as



npm install selenium-webdriver --save and npm install






share|improve this answer



























  • Thanks but it's not work

    – levi
    Mar 28 at 8:20











  • thanks but steel not work. please see my edit.

    – levi
    Mar 28 at 9:15











  • did you try it by removing node_modules folder and package-lock.json file?

    – Seba Cherian
    Mar 28 at 9:16











  • no. why i need to do so?

    – levi
    Mar 28 at 9:49











  • It's for fresh installing. Some times these old folders may cause issues, shich I have encountered few times. So I suggested doing so. fyi 'i' in 'npm i' stands for 'npm install'

    – Seba Cherian
    Mar 28 at 9:50



















0
















I've got the same error. It is only happened because somehow I added the following line to one of my controller.ts file:



 import element from 'protractor';


After I removed that line, the problem was solved.






share|improve this answer



























    Your Answer






    StackExchange.ifUsing("editor", function ()
    StackExchange.using("externalEditor", function ()
    StackExchange.using("snippets", function ()
    StackExchange.snippets.init();
    );
    );
    , "code-snippets");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "1"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );














    draft saved

    draft discarded
















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55392647%2fnpm-error-cannot-find-module-selenium-webdriver-lib-input%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    4 Answers
    4






    active

    oldest

    votes








    4 Answers
    4






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0
















    It looks like the problem is with the package with @types:



    https://github.com/angular/protractor/issues/5192



    Maybe try use previous version for example: @types/selenium-webdriver@2.53.33






    share|improve this answer

























    • i will need to remove before the "selenium-webdriver"?

      – levi
      Mar 28 at 8:22











    • probably not but if this not work you can install previus version for "selenium-webdriver" too

      – Eutrepe
      Mar 28 at 8:24











    • it's seems like the error actually fixed. but now another errors come. like ERROR in node_modules/protractor/built/driverProviders/local.d.ts(1,10): error TS2305: Module '"selenium-webdriver/remote"' has no exported member 'SeleniumServer'

      – levi
      Mar 28 at 8:38












    • Try maybe with other version: npmjs.com/package/@types/selenium-webdriver?activeTab=versions

      – Eutrepe
      Mar 28 at 8:53











    • i try another versions but it's steel not work. please see my edit.

      – levi
      Mar 28 at 9:14















    0
















    It looks like the problem is with the package with @types:



    https://github.com/angular/protractor/issues/5192



    Maybe try use previous version for example: @types/selenium-webdriver@2.53.33






    share|improve this answer

























    • i will need to remove before the "selenium-webdriver"?

      – levi
      Mar 28 at 8:22











    • probably not but if this not work you can install previus version for "selenium-webdriver" too

      – Eutrepe
      Mar 28 at 8:24











    • it's seems like the error actually fixed. but now another errors come. like ERROR in node_modules/protractor/built/driverProviders/local.d.ts(1,10): error TS2305: Module '"selenium-webdriver/remote"' has no exported member 'SeleniumServer'

      – levi
      Mar 28 at 8:38












    • Try maybe with other version: npmjs.com/package/@types/selenium-webdriver?activeTab=versions

      – Eutrepe
      Mar 28 at 8:53











    • i try another versions but it's steel not work. please see my edit.

      – levi
      Mar 28 at 9:14













    0














    0










    0









    It looks like the problem is with the package with @types:



    https://github.com/angular/protractor/issues/5192



    Maybe try use previous version for example: @types/selenium-webdriver@2.53.33






    share|improve this answer













    It looks like the problem is with the package with @types:



    https://github.com/angular/protractor/issues/5192



    Maybe try use previous version for example: @types/selenium-webdriver@2.53.33







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Mar 28 at 8:07









    EutrepeEutrepe

    621 gold badge1 silver badge7 bronze badges




    621 gold badge1 silver badge7 bronze badges















    • i will need to remove before the "selenium-webdriver"?

      – levi
      Mar 28 at 8:22











    • probably not but if this not work you can install previus version for "selenium-webdriver" too

      – Eutrepe
      Mar 28 at 8:24











    • it's seems like the error actually fixed. but now another errors come. like ERROR in node_modules/protractor/built/driverProviders/local.d.ts(1,10): error TS2305: Module '"selenium-webdriver/remote"' has no exported member 'SeleniumServer'

      – levi
      Mar 28 at 8:38












    • Try maybe with other version: npmjs.com/package/@types/selenium-webdriver?activeTab=versions

      – Eutrepe
      Mar 28 at 8:53











    • i try another versions but it's steel not work. please see my edit.

      – levi
      Mar 28 at 9:14

















    • i will need to remove before the "selenium-webdriver"?

      – levi
      Mar 28 at 8:22











    • probably not but if this not work you can install previus version for "selenium-webdriver" too

      – Eutrepe
      Mar 28 at 8:24











    • it's seems like the error actually fixed. but now another errors come. like ERROR in node_modules/protractor/built/driverProviders/local.d.ts(1,10): error TS2305: Module '"selenium-webdriver/remote"' has no exported member 'SeleniumServer'

      – levi
      Mar 28 at 8:38












    • Try maybe with other version: npmjs.com/package/@types/selenium-webdriver?activeTab=versions

      – Eutrepe
      Mar 28 at 8:53











    • i try another versions but it's steel not work. please see my edit.

      – levi
      Mar 28 at 9:14
















    i will need to remove before the "selenium-webdriver"?

    – levi
    Mar 28 at 8:22





    i will need to remove before the "selenium-webdriver"?

    – levi
    Mar 28 at 8:22













    probably not but if this not work you can install previus version for "selenium-webdriver" too

    – Eutrepe
    Mar 28 at 8:24





    probably not but if this not work you can install previus version for "selenium-webdriver" too

    – Eutrepe
    Mar 28 at 8:24













    it's seems like the error actually fixed. but now another errors come. like ERROR in node_modules/protractor/built/driverProviders/local.d.ts(1,10): error TS2305: Module '"selenium-webdriver/remote"' has no exported member 'SeleniumServer'

    – levi
    Mar 28 at 8:38






    it's seems like the error actually fixed. but now another errors come. like ERROR in node_modules/protractor/built/driverProviders/local.d.ts(1,10): error TS2305: Module '"selenium-webdriver/remote"' has no exported member 'SeleniumServer'

    – levi
    Mar 28 at 8:38














    Try maybe with other version: npmjs.com/package/@types/selenium-webdriver?activeTab=versions

    – Eutrepe
    Mar 28 at 8:53





    Try maybe with other version: npmjs.com/package/@types/selenium-webdriver?activeTab=versions

    – Eutrepe
    Mar 28 at 8:53













    i try another versions but it's steel not work. please see my edit.

    – levi
    Mar 28 at 9:14





    i try another versions but it's steel not work. please see my edit.

    – levi
    Mar 28 at 9:14













    0
















    1. Backup your code including node_modules folder

    2. Remove node_modules folder and package-lock.json file


    3. Run the following command in root folder of the application



      npm i

      ng serve






    share|improve this answer



























    • Why would you want to back up your code now instead of always backing up your code with some form of Git service like GitHub?

      – Edric
      Mar 28 at 8:22












    • Backup Code -> Copy the existing code folder into another location in your system

      – Vinodh Ram
      Mar 28 at 8:26















    0
















    1. Backup your code including node_modules folder

    2. Remove node_modules folder and package-lock.json file


    3. Run the following command in root folder of the application



      npm i

      ng serve






    share|improve this answer



























    • Why would you want to back up your code now instead of always backing up your code with some form of Git service like GitHub?

      – Edric
      Mar 28 at 8:22












    • Backup Code -> Copy the existing code folder into another location in your system

      – Vinodh Ram
      Mar 28 at 8:26













    0














    0










    0









    1. Backup your code including node_modules folder

    2. Remove node_modules folder and package-lock.json file


    3. Run the following command in root folder of the application



      npm i

      ng serve






    share|improve this answer















    1. Backup your code including node_modules folder

    2. Remove node_modules folder and package-lock.json file


    3. Run the following command in root folder of the application



      npm i

      ng serve







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Mar 28 at 9:09









    piet.t

    10.3k7 gold badges36 silver badges48 bronze badges




    10.3k7 gold badges36 silver badges48 bronze badges










    answered Mar 28 at 8:21









    Vinodh RamVinodh Ram

    1261 gold badge2 silver badges15 bronze badges




    1261 gold badge2 silver badges15 bronze badges















    • Why would you want to back up your code now instead of always backing up your code with some form of Git service like GitHub?

      – Edric
      Mar 28 at 8:22












    • Backup Code -> Copy the existing code folder into another location in your system

      – Vinodh Ram
      Mar 28 at 8:26

















    • Why would you want to back up your code now instead of always backing up your code with some form of Git service like GitHub?

      – Edric
      Mar 28 at 8:22












    • Backup Code -> Copy the existing code folder into another location in your system

      – Vinodh Ram
      Mar 28 at 8:26
















    Why would you want to back up your code now instead of always backing up your code with some form of Git service like GitHub?

    – Edric
    Mar 28 at 8:22






    Why would you want to back up your code now instead of always backing up your code with some form of Git service like GitHub?

    – Edric
    Mar 28 at 8:22














    Backup Code -> Copy the existing code folder into another location in your system

    – Vinodh Ram
    Mar 28 at 8:26





    Backup Code -> Copy the existing code folder into another location in your system

    – Vinodh Ram
    Mar 28 at 8:26











    0
















    Can you try these two commands in terminal to ensure that all the packages are installed:



    npm i selenium-webdriver --save and npm i



    which is also same as



    npm install selenium-webdriver --save and npm install






    share|improve this answer



























    • Thanks but it's not work

      – levi
      Mar 28 at 8:20











    • thanks but steel not work. please see my edit.

      – levi
      Mar 28 at 9:15











    • did you try it by removing node_modules folder and package-lock.json file?

      – Seba Cherian
      Mar 28 at 9:16











    • no. why i need to do so?

      – levi
      Mar 28 at 9:49











    • It's for fresh installing. Some times these old folders may cause issues, shich I have encountered few times. So I suggested doing so. fyi 'i' in 'npm i' stands for 'npm install'

      – Seba Cherian
      Mar 28 at 9:50
















    0
















    Can you try these two commands in terminal to ensure that all the packages are installed:



    npm i selenium-webdriver --save and npm i



    which is also same as



    npm install selenium-webdriver --save and npm install






    share|improve this answer



























    • Thanks but it's not work

      – levi
      Mar 28 at 8:20











    • thanks but steel not work. please see my edit.

      – levi
      Mar 28 at 9:15











    • did you try it by removing node_modules folder and package-lock.json file?

      – Seba Cherian
      Mar 28 at 9:16











    • no. why i need to do so?

      – levi
      Mar 28 at 9:49











    • It's for fresh installing. Some times these old folders may cause issues, shich I have encountered few times. So I suggested doing so. fyi 'i' in 'npm i' stands for 'npm install'

      – Seba Cherian
      Mar 28 at 9:50














    0














    0










    0









    Can you try these two commands in terminal to ensure that all the packages are installed:



    npm i selenium-webdriver --save and npm i



    which is also same as



    npm install selenium-webdriver --save and npm install






    share|improve this answer















    Can you try these two commands in terminal to ensure that all the packages are installed:



    npm i selenium-webdriver --save and npm i



    which is also same as



    npm install selenium-webdriver --save and npm install







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Mar 28 at 9:51

























    answered Mar 28 at 8:14









    Seba CherianSeba Cherian

    1,1981 silver badge14 bronze badges




    1,1981 silver badge14 bronze badges















    • Thanks but it's not work

      – levi
      Mar 28 at 8:20











    • thanks but steel not work. please see my edit.

      – levi
      Mar 28 at 9:15











    • did you try it by removing node_modules folder and package-lock.json file?

      – Seba Cherian
      Mar 28 at 9:16











    • no. why i need to do so?

      – levi
      Mar 28 at 9:49











    • It's for fresh installing. Some times these old folders may cause issues, shich I have encountered few times. So I suggested doing so. fyi 'i' in 'npm i' stands for 'npm install'

      – Seba Cherian
      Mar 28 at 9:50


















    • Thanks but it's not work

      – levi
      Mar 28 at 8:20











    • thanks but steel not work. please see my edit.

      – levi
      Mar 28 at 9:15











    • did you try it by removing node_modules folder and package-lock.json file?

      – Seba Cherian
      Mar 28 at 9:16











    • no. why i need to do so?

      – levi
      Mar 28 at 9:49











    • It's for fresh installing. Some times these old folders may cause issues, shich I have encountered few times. So I suggested doing so. fyi 'i' in 'npm i' stands for 'npm install'

      – Seba Cherian
      Mar 28 at 9:50

















    Thanks but it's not work

    – levi
    Mar 28 at 8:20





    Thanks but it's not work

    – levi
    Mar 28 at 8:20













    thanks but steel not work. please see my edit.

    – levi
    Mar 28 at 9:15





    thanks but steel not work. please see my edit.

    – levi
    Mar 28 at 9:15













    did you try it by removing node_modules folder and package-lock.json file?

    – Seba Cherian
    Mar 28 at 9:16





    did you try it by removing node_modules folder and package-lock.json file?

    – Seba Cherian
    Mar 28 at 9:16













    no. why i need to do so?

    – levi
    Mar 28 at 9:49





    no. why i need to do so?

    – levi
    Mar 28 at 9:49













    It's for fresh installing. Some times these old folders may cause issues, shich I have encountered few times. So I suggested doing so. fyi 'i' in 'npm i' stands for 'npm install'

    – Seba Cherian
    Mar 28 at 9:50






    It's for fresh installing. Some times these old folders may cause issues, shich I have encountered few times. So I suggested doing so. fyi 'i' in 'npm i' stands for 'npm install'

    – Seba Cherian
    Mar 28 at 9:50












    0
















    I've got the same error. It is only happened because somehow I added the following line to one of my controller.ts file:



     import element from 'protractor';


    After I removed that line, the problem was solved.






    share|improve this answer





























      0
















      I've got the same error. It is only happened because somehow I added the following line to one of my controller.ts file:



       import element from 'protractor';


      After I removed that line, the problem was solved.






      share|improve this answer



























        0














        0










        0









        I've got the same error. It is only happened because somehow I added the following line to one of my controller.ts file:



         import element from 'protractor';


        After I removed that line, the problem was solved.






        share|improve this answer













        I've got the same error. It is only happened because somehow I added the following line to one of my controller.ts file:



         import element from 'protractor';


        After I removed that line, the problem was solved.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Aug 12 at 14:41









        DubaDuba

        1




        1































            draft saved

            draft discarded















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55392647%2fnpm-error-cannot-find-module-selenium-webdriver-lib-input%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            1973년 목차 사건 문화 탄생 사망 노벨상 달력 둘러보기 메뉴

            SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

            인천여자상업고등학교 목차 학교 연혁 설치 학과 학교 동문 참고 자료 각주 외부 링크 둘러보기 메뉴북위 37° 28′ 05″ 동경 126° 37′ 41″ / 북위 37.4680025° 동경 126.6279602°  / 37.4680025; 126.6279602인천여자상업고등학교“인천광역시립학교 설치조례 별표1”인천여자상업고등학교 홈페이지eheh문서를 완성해