react native error fsevents#1.2.4 (node_modules\fsevents - reactjs

Hello I am getting these error after installing react native-naviation component
I am using EXPO for instead of NVD. More important is to resolve bold warning(last two warning)
npm WARN eslint-plugin-react-native#3.2.1 requires a peer of eslint#^3.17.0 || ^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN native-base#2.7.2 requires a peer of react#>=16.4.1 but none is installed. You must install peer dependencies yourself.
npm WARN native-base#2.7.2 requires a peer of react-native#>=0.56.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-native-maps#0.21.0 requires a peer of react-native#^0.51 || ^0.52 || ^0.53 || ^0.54 but none is installed. You must install peer dependencies yourself.
npm WARN react-native-reanimated#1.0.0-alpha.3 requires a peer of react#16.0.0-alpha.6 but none is installed. You must install peer dependencies yourself.
npm WARN react-native-reanimated#1.0.0-alpha.3 requires a peer of react-native#^0.44.1 but none is installed. You must install peer dependencies yourself.
**npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.2.4 (node_modules\fsevents):**
**npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})**

None of these errors are anything to worry about. Infact, they are not errors but a warnings.
eslint code quality checking software. It simply checks your code to see if it is adhering to the best standards. You could turn off that warning if you wished.
fsevents is an optional dependency. This error comes up (usually) if you are using npm on mac systems. It should have no effect on your build though. If you're particularly upset about those last two errors, run npm i -f to force a fetch of remote resources (which should get rid of that dependency issue).

Related

React Native Error: react-native#0.41.2 requires a peer of react#~15.4.0

I get below error when trying to npm install on this project: https://github.com/datso/react-native-pjsip-app
tar: .libs.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
npm WARN react-native#0.41.2 requires a peer of react#~15.4.0 but none is installed. You must install peer dependencies yourself.
I can't figure out how to install React Native, the project is one year old and I guess I must somehow update to latest version?
Following guide from http://www.cnblogs.com/mmx8861/p/9150009.html I did:
n
pm cache clean
Modified package.json with: "react":"~15.4.1"; "react-native":"0.42.3"; "react-test-renderer":"15.4.1"
npm install all module
npm install
npm i react-native-maps#0.12.5 --S
react-native link react-native-maps
Manually changing to React16 results in :
npm WARN enzyme#2.9.1 requires a peer of react#0.13.x || 0.14.x || ^15.0.0-0 || 15.x but none is installed. You must install peer dependencies yourself.
npm WARN react-dom#15.6.2 requires a peer of react#^15.6.2 but none is installed. You must install peer dependencies yourself.
npm WARN The package react is included as both a dev and production dependency.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.2.4 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
Then I changed "enzyme": "^2.9.1" to "enzyme": "^3.0.0" and "react-dom": "^15.6.0" to "react-dom": "^15.6.0" and now I'm stuck at below:
npm WARN react-addons-perf#15.4.2 requires a peer of react-dom#^15.4.2 but none is installed. You must install peer dependencies yourself.
npm WARN react-addons-test-utils#15.6.2 requires a peer of react-dom#^15.4.2 but none is installed. You must install peer dependencies yourself.
npm WARN react-dom#15.6.2 requires a peer of react#^15.6.2 but none is installed. You must install peer dependencies yourself.
npm WARN The package react is included as both a dev and production dependency.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.2.4 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
It seems according to React the support for react-addons-perf is discontinued as of React 16 !
How do I fix the npm install errors?
Cheers

How to run Kotlin + React + Redux using the create-react-kotlin-app?

I am using the create-react-kotlin-app and following the instructions on its GitHub page to create a React + Redux app using Kotlin. The first install part works fine:
create-react-kotlin-app my-app
cd my-app
npm start
The app works fine, but when I try to add Redux:
npm install #jetbrains/kotlin-react-redux
npm WARN #jetbrains/kotlin-extensions#1.0.1-pre.49 requires a peer of core-js#^2.5.7 but none is installed. You must install peer dependencies yourself.
npm WARN ajv-keywords#3.2.0 requires a peer of ajv#^6.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN css-loader#1.0.0 requires a peer of webpack#^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN url-loader#1.1.1 requires a peer of webpack#^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN #jetbrains/kotlin-react-redux#5.0.7-pre.49 requires a peer of #jetbrains/kotlin-redux#^4.0.0-pre.49 but none is installed. You must install peer dependencies yourself.
npm WARN #jetbrains/kotlin-react-redux#5.0.7-pre.49 requires a peer of react-redux#^5.0.7 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.2.4 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
+ #jetbrains/kotlin-react-redux#5.0.7-pre.49
added 1 package from 1 contributor and audited 5522 packages in 9.891s
found 0 vulnerabilities
Redux doesn't work. How do I fix this? (I am running npm 6.1.0).
Hi #divlan Have you tried working through officail Hands-on on Kotlin React App?

React-bootstrap not installing

I'm having issue installing react and react-bootstrap. I used them in the past and everything was working fine. But now, I seem to have an issue installing or updating them.
After the code line: npm install --save react-bootstrap in my terminal, I get these errors:
npm WARN react-bootstrap#0.32.1 requires a peer of react#^0.14.9 || >=15.3.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-bootstrap#0.32.1 requires a peer of react-dom#^0.14.9 || >=15.3.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-prop-types#0.4.0 requires a peer of react#>=0.14.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-transition-group#2.2.1 requires a peer of react#>=15.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-transition-group#2.2.1 requires a peer of react-dom#>=15.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-overlays#0.8.3 requires a peer of react#^0.14.9 || >=15.3.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-overlays#0.8.3 requires a peer of react-dom#^0.14.9 || >=15.3.0 but none is installed. You must install peer dependencies yourself.
npm WARN prop-types-extra#1.0.1 requires a peer of react#>=0.14.0 but none is installed. You must install peer dependencies yourself.
npm WARN uncontrollable#4.1.0 requires a peer of react#>=0.11.0 but none is installed. You must install peer dependencies yourself.
Even my past react projects aren't working anymore and I can't find in the docs anything about these errors.
Thank you for any help.
I suspect there's an typo in your command line
npm install --save react-booTstrap

React 16 Upgrade dependency warnings

I upgraded from React 15.4 to React 16. I also went through all the js libraries in my package.json and updated them to the latest. Still i'm getting these warnings and am not sure how to resolve them.
npm WARN react-render-html#0.5.2 requires a peer of react#^15.1.0 but none was installed.
npm WARN react-addons-test-utils#15.6.2 requires a peer of react-dom#^15.4.2 but none was installed.
npm WARN recharts#1.0.0-alpha.6 requires a peer of react#^0.14.0 || ^15.0.0 but none was installed.
npm WARN #daptiv/ppm-npmp-react-theme#2.0.5 requires a peer of react#^15.6.1 but none was installed.
npm WARN react-resize-detector#0.6.0 requires a peer of react#^0.14.7 || ^15.0.0 but none was installed.
npm WARN react-smooth#0.3.0 requires a peer of react#^0.14.0 || ^15.0.0 but none was installed.
npm WARN react-smooth#0.3.0 requires a peer of react-dom#^0.14.0 || ^15.0.0 but none was installed.
npm WARN ppm-mspa-projectdashboard#0.0.23 No repository field.
Any ideas?
There is not much you can do about those warnings. If you look at the package.json files of those dependencies that you get the warning about, like react-render-html, you'll see that they have React 15 as peer dependency.
The authors of these packages you are using will have to update their dependency to the latest React to fix those warnings.
You can, of course, fork the projects and create pull requests to make it easier for them.

[react-native]npm install warn require multiple version react

I'm running a react-native project,and it's package.json dependencies some third-part libraries,but maybe these libraries haven't update for a long time,they require different version of react.
When I npm install, I got warning below:
npm WARN react-native#0.43.3 requires a peer of react#16.0.0-alpha.6 but none was installed.
npm WARN native-base-shoutem-theme#0.1.0 requires a peer of react#>=15.1.0 but none was installed.
npm WARN #shoutem/animation#0.8.10 requires a peer of react#^15.0.0 but none was installed.
npm WARN react-static-container#1.0.1 requires a peer of react#^0.13.0 || ^0.14.0 || ^15.0.0 but none was installed.
npm WARN react-test-renderer#15.4.2 requires a peer of react#^15.4.2 but none was installed.
I'm not sure npm could install multiple version in a single project.So how could I fix this problem?

Resources