Error while installing npm install and expo init

I install the expo-cli using the npm intall -g expo-cli
After then I set the system enviroment variable of npm
Now, the error is when I creates the project using expo init projectname, it will gives the following log.

[10:49:49] Extracting project files…
[10:49:50] Customizing project…
[10:49:50] Installing dependencies…
npm ERR! code ENOGIT
npm ERR! Error while executing:
npm ERR! undefined ls-remote -h -t ssh://git@github.com/expo/react-native-maps.git
npm ERR!
npm ERR! undefined
npm ERR! No git binary found in $PATH
npm ERR!
npm ERR! Failed using git.
npm ERR! Please check if you have git installed and in your PATH.

npm ERR! A complete log of this run can be found in:
npm ERR! \AppData\Roaming\npm-cache_logs\2019-01-03T05_20_03_951Z-debug.log
[10:50:04] Process exited with non-zero code: 1
[10:50:04] Set EXPO_DEBUG=true in your env to view the stack trace.

Is there any permanent solution for this issue.

Hey @renishp,

Did you ensure you have git installed and it’s correctly set in your PATH?

Cheers,

Adam

Thanks @adamjnav

Git is needs to install in the PC.
When i install the git, it automatically sets the environment variable.

That’s it

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