N
N
NataliaKononenko2016-11-16 18:45:16
IntelliJ IDEA
NataliaKononenko, 2016-11-16 18:45:16

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

1 answer(s)
C
catHD, 2016-11-30
@catHD

Node version 6+?
https://www.npmjs.com/package/fs.realpath
This package comes as a dependency inside the glob.
https://github.com/isaacs/node-glob/blob/master/pa... Are you
sure npm i is installed correctly?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question