Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependency error while running "npm i react-native-splash-screen --save" #49

Open
Aadesh05 opened this issue Apr 10, 2017 · 3 comments
Open

Comments

@Aadesh05
Copy link

This is when my package.json file has
{
"name": "Project",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "react-native start"
},
"dependencies": {
"react": "^15.4.0",
"react-native": "^0.40.0",
"react-native-splash-screen": "^2.0.0"
}
}

Output:
$ npm i react-native-splash-screen --save
[email protected] /Users/splashScreen
├── UNMET PEER DEPENDENCY [email protected]
└── [email protected]

npm WARN [email protected] requires a peer of react@~15.4.0-rc.4 but none was installed.

When I change my package.json file's react version to 15.4.0 the output I get is

$ npm i react-native-splash-screen --save
[email protected] /splashScreen
├── UNMET PEER DEPENDENCY [email protected]
└── [email protected]

npm WARN [email protected] requires a peer of react@~15.4.0-rc.4 but none was installed.

Can any one help me for above problem ?

@ericwooley
Copy link

Seems like you need to update your react dependency to a version of react that is accepted by both libs. native 0.41, uses react 15.4.x, it might be worth upgrading, then npm install --save [email protected]

@mahdieh-dev
Copy link

@ericwooley thanks. It worked well for me

@sanaSajwan7
Copy link

sanaSajwan7 commented Sep 1, 2018

npm ERR! code ERR_TLS_CERT_ALTNAME_INVALID
npm ERR! errno ERR_TLS_CERT_ALTNAME_INVALID
npm ERR! request to https://registry.npmjs.org/react-native-splash-screen failed, reason: Hostname/IP does not match certificate's altnames: Host: registry.npmjs.org. is not in the cert's altnames: DNS:a.sni.fastly.net, DNS:a.sni.global-ssl.fastly.net

npm ERR! A complete log of this run can be found in:

I am getting the above error while installing this module. .
Is there any solution for this error?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants