question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

react-native-svg": "^6.0.0-rc1" > npm ERR! peer dep missing

See original GitHub issue

Just tried to install react-native-svg to a project I had setup in the past. but unfortunately I am getting the following error:

├── UNMET PEER DEPENDENCY react@16.0.0-alpha.6
├── UNMET PEER DEPENDENCY react-native@0.44.0
└─┬ react-native-svg@6.0.0-rc1 
  └─┬ color@0.11.4 
    └── color-string@0.3.0 

npm WARN react-native-svg@6.0.0-rc1 requires a peer of react-native@>=0.46.0 but none was installed.
npm WARN react-native-svg@6.0.0-rc1 requires a peer of react@16.0.0-alpha.12 but none was installed.

I also tried to downgrade to "react-native-svg": "^5.4.1", but that also did not work:

├── UNMET PEER DEPENDENCY react@16.0.0-alpha.6
├── UNMET PEER DEPENDENCY react-native@0.44.0
└── react-native-svg@5.4.1 

npm WARN react-native-svg@5.4.1 requires a peer of react-native@>=0.46.0 but none was installed.
npm WARN react-native-svg@5.4.1 requires a peer of react@16.0.0-alpha.12 but none was installed.

My current JSON file is as follows:

  "dependencies": {
    "react": "16.0.0-alpha.6",
    "react-native": "^0.44.0",
    "react-native-ble-manager": "^6.2.1",
    "react-native-svg": "^6.0.0-rc1",
    "react-navigation": "^1.0.0-beta.9",
    "react-redux": "^5.0.4",
    "redux": "^3.6.0",
    "redux-saga": "^0.15.3"
  },

Also updating react to alpha.12 gets me to these issues: https://github.com/facebook/react-native/issues/16174

Thank you for your help.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
msandcommented, Oct 2, 2017

I would recommend you upgrade react-native to the latest version, and react to the same version as depended on by that, and then use the latest version of react-native-svg

Read more comments on GitHub >

github_iconTop Results From Across the Web

react-native-svg": "^6.0.0-rc1" > npm ERR! peer dep missing
Just tried to install react-native-svg to a project I had setup in the past. but unfortunately I am getting the following error: ...
Read more >
npm install react-native-svg --save fails - Stack Overflow
Im new to react-native. I want to draw a chart , for that I came across this library. But unfortunately while installing the...
Read more >
react-native-svg - npm
react -native-svg provides SVG support to React Native on iOS, Android, macOS, Windows, and a compatibility layer for the web.
Read more >
you must install peer dependencies yourself Code Example
npm WARN codelyzer@6.0.1 requires a peer of tslint@^5.0.0 || ^6.0.0 but none is installed. You must install peer dependencies yourself. typescript by devops ......
Read more >
Package List — Spack 0.20.0.dev0 documentation
This is a list of things you can install using Spack. ... node-js, py-six, xmore ... Test Dependencies: boost; Description: An SVG based...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found