tradle / rn-nodeify

hack to allow react-native projects to use node core modules, and npm modules that use them
MIT License
618 stars 112 forks source link

error Couldn't find the binary git. #121

Open pradeepsimba opened 2 years ago

pradeepsimba commented 2 years ago

After adding "rn-nodeify": "github:tradle/rn-nodeify" to package.json under devDependencies and run npm install

If I run this command npm install the below error occured.

C:\Users\mahima\Desktop\react-native\newsim>npm install
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
npm ERR! code ENOENT
npm ERR! syscall spawn git
npm ERR! path git
npm ERR! errno -4058
npm ERR! enoent An unknown git error occurred
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\mahima\AppData\Local\npm-cache\_logs\2022-08-29T04_51_33_519Z-debug-0.log

How can I solve this error ?