Google-signin: Error: Cannot find module 'fs.realpath'

Created on 3 Jul 2017  路  1Comment  路  Source: react-native-google-signin/google-signin

In my project, after I successfully run "npm install react-native-google-signin --save"
I try to run "react-native link react-native-google-signin" and is getting the following error

Does anyone know what is wrong with it?

Thanks!

module.js:487
throw err;
^

Error: Cannot find module 'fs.realpath'
at Function.Module._resolveFilename (module.js:485:15)
at Function.Module._load (module.js:437:25)
at Module.require (module.js:513:17)
at require (internal/module.js:11:18)
at Object. (/Users/shuyih/dev/whmcs-mobile/node_modules/rimraf/node_modules/glob/glob.js:44:10)
at Module._compile (module.js:569:30)
at Module._extensions..js (module.js:580:10)
at Object.require.extensions.(anonymous function) [as .js] (/.../node_modules/babel-register/lib/node.js:152:7)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)

Most helpful comment

Able to resolve this by doing as below.
rm -rf node_modules, npm install, removed the npm lock file

>All comments

Able to resolve this by doing as below.
rm -rf node_modules, npm install, removed the npm lock file

Was this page helpful?
0 / 5 - 0 ratings