Answer the question
In order to leave comments, you need to log in
Node.js+Mocha: Cannot find module 'fs.realpath?
When running the standard google_search test from the selenium library ,
an error occurs
joxi.ru/8AnpLJktMgZMmO
The module itself is present in the root folder
module.js:471
throw err;
^
Error: Cannot find module 'fs.realpath'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.require (module.js: 497:17)
at require (internal/module.js:20:19)
at Object. (C:\Users\natalia.kononenko\node_modules\mocha\node_modules\glob\glob.js:44:10)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module .js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
Process finished with exit code 1
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question