Maurício Soares
Maurício Soares

Reputation: 13

How to install a package manually in a React Native project?

I am trying to instal a npm package in my React Native project,

npm install react-native-threatmetrix --save

but I got the following error:

npm ERR! code ENOVERSIONS
npm ERR! No valid versions available for react-native-threatmetrix

So, looks like the package has no available version. But I have access to the Github repository (https://github.com/teopeurt/react-native-threatmetrix), and I like to know if there is a way to install packages manually.

Upvotes: 1

Views: 1670

Answers (2)

Hassaan Tauqir
Hassaan Tauqir

Reputation: 2722

It looks like the package has been removed from npm registry.

You can clone the github repo using git clone https://github.com/teopeurt/react-native-threatmetrix.git, add it to your node_modules folder and then follow the manual instructions provided in the readme.

Upvotes: 1

TheRakeshPurohit
TheRakeshPurohit

Reputation: 551

To fetch package from npm, first it must be registered with NPM

The package you have mentioned over here is not registered.

The GitHub Repository of the same has no release or package. You can check on the link clearly.

You can't get it. Until a release and registration on NPM.

Upvotes: 0

Related Questions