how do you install native-base? - react-native

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

Related

Installing public package using `npm i curlconverter` results in `fatal: Could not read from remote repository`

There already is an issue about this on github however the proposed solution does not solve the problem. I am also not knowledgeable enough to know if this is a bug in the library or not.
$ npm i curlconverter
npm ERR! Error while executing:
npm ERR! /usr/bin/git ls-remote -h -t ssh://git#github.com/NickCarneiro/yargs-ansi.git
npm ERR!
npm ERR! git#github.com: Permission denied (publickey).
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.
npm ERR!
npm ERR! exited with error code: 128
npm ERR! A complete log of this run can be found in:
npm ERR! /home/user/.npm/_logs/2021-05-17T14_07_32_675Z-debug.log
I am able to install curlconverter locally by installing an older version:
npm install --save yargs
npm install --save curlconverter#3.12.0
However if I do this in a Dockerfile it still errors:
Step 6/9 : RUN npm install --save curlconverter#3.12.0
---> Running in 2f5e6c7af7ce
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 ssh://git#github.com/NickCarneiro/yargs.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! /root/.npm/_logs/2021-05-17T14_06_02_821Z-debug.log
The command '/bin/sh -c npm install --save curlconverter#3.12.0' returned a non-zero code: 1
What is the problem here and is there any way to install and use the package?

why does sass & NPM stop working if I haven't changed anything?

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

npm install not working and showing error

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

Why can't I install these expo navigation dependencies?

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

Problems in creating CRNA

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.`