EISGIT react-native-safe-area-view error

I just installed expo and tried to install eslint in the project. Running

npm install --save react-navigation

gives me the following error:

85 verbose stack Error: D:\SomeApp\node_modules\react-native-safe-area-view: Appears to be a git repo or submodule.
85 verbose stack     at C:\Users\someuser\AppData\Roaming\npm\node_modules\npm\node_modules\npm-install-checks\index.js:137:15
85 verbose stack     at C:\Users\someuser\AppData\Roaming\npm\node_modules\npm\node_modules\graceful-fs\polyfills.js:285:20
85 verbose stack     at FSReqWrap.oncomplete (fs.js:155:5)
86 verbose cwd D:\SomeApp
87 verbose Windows_NT 10.0.17763
88 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\someuser\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "--save" "react-navigation"
89 verbose node v10.13.0
90 verbose npm  v6.9.0
91 error path D:\SomeApp\node_modules\react-native-safe-area-view
92 error code EISGIT
93 error git D:\SomeApp\node_modules\react-native-safe-area-view: Appears to be a git repo or submodule.
94 error git D:\SomeApp\node_modules\react-native-safe-area-view
95 error git Refusing to remove it. Update manually,
95 error git or move it out of the way first.
96 verbose exit [ 1, true ]

Any help on how to resolve this would be appreciated.
Thanks

Go to the root directory of the project and remove the current node modules and install again.

rm -rf node_modules npm install

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.