Home > Blockchain >  How to install new WebView version in react native
How to install new WebView version in react native

Time:12-15

react-native-webview": "^11.21.2"

this is version in my project

I need to install Latest version of WebView in react native

react-native-webview:11.26.0

but whenever I try to install this

npm i [email protected] or npm install react-native-webview@latest 

it's give me a error like this

npm install react-native-webview@latest 
npm WARN [email protected] requires a peer of eslint@^3.0.0 || ^4.0.0 || ^5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of eslint@^3.17.0 || ^4 || ^5 but none is installed. You must install peer dependencies yourself.

npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm ERR! notsup Valid OS:    darwin
npm ERR! notsup Valid Arch:  any
npm ERR! notsup Actual OS:   win32
npm ERR! notsup Actual Arch: x64

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\dp312\AppData\Roaming\npm-cache\_logs\2022-12-15T17_01_21_473Z-debug.log

So how can I install a latest version of webview in react native

CodePudding user response:

you can try the below command in npm :

npm install [email protected] --legacy-peer-deps

Or, delete package.lock.json and node_modules folder then run,

npm i -f

then run

npm install

  • Related