Im just stared learning react Native, and while creating a CRNA I had this :
`C:\Users\Mohamed\Documents\Projet> expo init MoviesAndMe
? Choose a template: expo-template-blank
? Choose which workflow to use: managed
√ Please enter a few initial configuration values.
Read more: https://docs.expo.io/versions/latest/workflow/configuration · 100% completed
[17:21:41] Extracting project files...
[17:21:45] Customizing project...
[17:21:45] Installing dependencies...
npm ERR! path git
npm ERR! code ENOENT
npm ERR! errno ENOENT
npm ERR! syscall spawn git
npm ERR! enoent Error while executing:
npm ERR! enoent undefined ls-remote -h -t ssh://git#github.com/expo/react-native-maps.git
npm ERR! enoent
npm ERR! enoent
npm ERR! enoent spawn git ENOENT
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\Mohamed\AppData\Roaming\npm-cache\_logs\2019-02-17T16_22_16_022Z-debug.log
[17:22:16] Process exited with non-zero code: 1
[17:22:16] Set EXPO_DEBUG=true in your env to view the stack trace.`
Related
I'm working on a site when my sass stopped working and NPM won't listen for changes!
npm ERR! errno -4058 npm ERR! enoent Error while executing: npm ERR!
enoent undefined ls-remote -h -t ssh://git#github.com/gulpjs/gulp.git
npm ERR! enoent npm ERR! enoent npm ERR! enoent spawn git ENOENT 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\Symmetry
Thomas\AppData\Roaming\npm-cache\_logs\2020-12-12T16_13_40_508Z-debug.log
1- Try deleting node_modules directory entirely and run npm install.
2- Another solution could be running npm cache clean
At many times I face npm install error like this:
Help would be appreciated, Thanks....
npm ERR! code ENOENT
npm ERR! syscall spawn git
npm ERR! path git
npm ERR! errno ENOENT
npm ERR! enoent Error while executing:
npm ERR! enoent undefined ls-remote -h -t https://github.com/naver/hammer.js.git
npm ERR! enoent
npm ERR! enoent
npm ERR! enoent spawn git ENOENT
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\Rafay\AppData\Roaming\npm-cache\_logs\2020-03-21T13_50_14_353Z-debug.log
I want to run react-navigation.
It gives me this error for gesture handler. While I'm going to install gesture handler, the following error occurs.
Kindly give me the appropriate solution.
C:\Users\Farooq\FirstActivity>npm install --save react-native-gesture-handler
npm ERR! code ENOENT
npm ERR! syscall spawn git
npm ERR! path git
npm ERR! errno ENOENT
npm ERR! enoent Error while executing:
npm ERR! enoent undefined ls-remote -h -t https://github.com/naver/hammer.js.git
npm ERR! enoent
npm ERR! enoent
npm ERR! enoent spawn git ENOENT
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\Farooq\AppData\Roaming\npm-cache\_logs\2020-02-11T21_17_29_196Z-debug.log
This is typical issue with windows environment.
First of all download git for windows from here
Then follow bellow steps
Open Your Environment Variables
Edit Path
Find your git location that been installed in your device. Example is C:\Program Files\Git\cmd
Add the git location to Path (make sure to add this to both user variables and system variables)
Apply the changes and restart your pc
Lastly, go back to your project and run npm install react-native-gesture-handler
I'm trying to run the commands listed here:
https://reactnavigation.org/docs/en/getting-started.html
I installed "navigation" itself correctly
But when I try the following command:
expo install react-native-gesture-handler react-native-reanimated react-native-screens react-native-safe-area-context #react-native-community/masked-view
I get the following error:
Installing 5 SDK 36.0.0 compatible native modules using npm
> npm install
npm ERR! code ENOENT
npm ERR! syscall spawn git
npm ERR! path git
npm ERR! errno -4058
npm ERR! enoent Error while executing:
npm ERR! enoent undefined ls-remote -h -t https://github.com/naver/hammer.js.git
npm ERR! enoent
npm ERR! enoent
npm ERR! enoent spawn git ENOENT
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
I've installed them before with no problem with other projects, so I don't know why this could be happening
Here my errors with my commands.
Command i tried to execute:
npm install native-base --save
Here error output:
npm ERR! path git
npm ERR! code ENOENT
npm ERR! errno ENOENT
npm ERR! syscall spawn git
npm ERR! enoent Error while executing:
npm ERR! enoent undefined ls-remote -h -t ssh://git#github.com/GeekyAnts/theme.git
npm ERR! enoent
npm ERR! enoent
npm ERR! enoent spawn git ENOENT
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\jaber\AppData\Roaming\npm-cache\_logs\2019-07-21T08_15_50_391Z-debug.log
First, install git on your system. Native Base need pull package from ssh://git#github.com/GeekyAnts/theme.git by git command.
Make sure your git location stay in system's path environment by using this command:
git --version