WrathChaos / react-native-dynamic-search-bar

Medium Article: https://freakycoder.com/react-native-library-dynamic-search-bar-c03fea9fae36
MIT License
481 stars 52 forks source link

Unable to install the version of Expo. #40

Closed codthing closed 3 years ago

codthing commented 3 years ago

No matter I use yarn or npm, I can't install it.

image

my version:

"expo": "~40.0.0" "react": "16.13.1" "react-dom": "16.13.1" "react-native": "https://github.com/expo/react-native/archive/sdk-40.0.1.tar.gz"

WrathChaos commented 3 years ago

In your log, we can see that you have a network problem.

codthing commented 3 years ago

@WrathChaos I don't think it is a network problem, it may be that this library is not compatible with Expo40 and TypeScript.

expo install WrathChaos/react-native-dynamic-search-bar#expo

image

WrathChaos commented 3 years ago

Expo40 is just arrived never tried to work on it. I will try and fix it asap :) I will inform you today

codthing commented 3 years ago

Expo40 is just arrived never tried to work on it. I will try and fix it asap :) I will inform you today

Many Thx

andresribeiro commented 3 years ago

I'm using Expo SDK 40 and it's working perfectly

WrathChaos commented 3 years ago

@mofengfs I've fixed the main path bug :) Can you please try it?

codthing commented 3 years ago

Sorry, still not possible

enoent undefined ls-remote -h -t ssh://git@github.com/WrathChaos/react-native-dynamic-search-bar.git

It seems that something is not defined correctly. . .

image

codthing commented 3 years ago

I'm using Expo SDK 40 and it's working perfectly

Can I take a look at your command line?

andresribeiro commented 3 years ago

I'm using Expo SDK 40 and it's working perfectly

Can I take a look at your command line?

image

I used Yarn, maybe it's a NPM error

WrathChaos commented 3 years ago

I can install it via NPM without a problem. @mofengfs Can you clean your npm cache? Because your local npm has a problem with it, also please upgrade the npm version.

codthing commented 3 years ago

@WrathChaos
image
I tried upgrading npm and clearing the cache, but it still doesn’t work
image

andresribeiro commented 3 years ago

@mofengfs seems to be an NPM error. Try the same commands by opening the terminal as an administrator or re-install the NPM

codthing commented 3 years ago

@andresribeiro I tried to reinstall the new node and overwrite the old npm. It's still the same.

andresribeiro commented 3 years ago

@andresribeiro I tried to reinstall the new node and overwrite the old npm. It's still the same.

Can you install other packages with NPM?

WrathChaos commented 3 years ago

@mofengfs can you try another terminal? Like VSCode internal one?

codthing commented 3 years ago

@andresribeiro Yes, I can use npm to install other packages. But compared to yarn, it is still too slow.
image
@WrathChaos Yes, I have tried to install with VScode terminal.
image

codthing commented 3 years ago

@WrathChaos By the way, neither of my two computers can be installed. Also, my two computers use different network cables. However, I use VPN. Because I live in a communist country. You know the reason. So I had to use VPN. What makes me happy is that I can install other plug-ins you make.
image

WrathChaos commented 3 years ago

Finally fixed the problem. Can you please re-try to npm i if it's still not working please use this on your package.json:

"react-native-dynamic-search-bar": "git+https://github.com/WrathChaos/react-native-dynamic-search-bar#expo",
codthing commented 3 years ago

Finally fixed the problem. Can you please re-try to npm i if it's still not working please use this on your package.json:

"react-native-dynamic-search-bar": "git+https://github.com/WrathChaos/react-native-dynamic-search-bar#expo",


I tried the npm installation first, without success. Then I added "react-native-dynamic-search-bar": "git+https://github.com/WrathChaos/react-native-dynamic-search-bar#expo" to package.json. But it stopped here. . .



image

codthing commented 3 years ago

@WrathChaos

Could it be because of the way your Link is named? Such as #expo,Or WrathChaos without @ in front

codthing commented 3 years ago

@WrathChaos

It ended up reporting an error

image

WrathChaos commented 3 years ago

@mofengfs I can literally be able to install the package into a fresh expo init project without a problem. Can you try to initialize a fresh project with:

expo init -t expo-template-blank-typescript test-example --npm

then

npm i WrathChaos/react-native-dynamic-search-bar#expo
codthing commented 3 years ago

@WrathChaos Sorry, this method is not suitable for me. It takes a long time to install dependent packages. There has been no response.

image image

WrathChaos commented 3 years ago

@mofengfs If you cannot even generate a fresh RN project, you definitely have some problems on the terminal side or your preferences or your network.

codthing commented 3 years ago

@WrathChaos I think It's NPM issues. the project can be generated. But if the dependencies are installed through NPM. Will fail.

image

WrathChaos commented 3 years ago

I think you need to uninstall whole node, npm and re-install again.

codthing commented 3 years ago

@WrathChaos

I uninstalled Node.js and cleared the registry -> Restart the computer -> Then install Node.js current version -> Recreate the project -> npm i WrathChaos/react-native-dynamic-search-bar#expo -> Failed

image

debug.log

image

WrathChaos commented 3 years ago

@mofengfs Can you try my another expo supported library:

npm i WrathChaos/react-native-dynamic-vector-icons#expo

Here is the library link: https://github.com/WrathChaos/react-native-dynamic-vector-icons

codthing commented 3 years ago

@WrathChaos I try it:

image

WrathChaos commented 3 years ago

I think you have a problem with installing sub-modules. Can you research about git submodule? What I do is just a sub-module on git that's it.