Erro generate app in macOS - react-native

I'm with this message after create my app using this command: react-native init...
npm WARN react-native#0.56.0 requires a peer of react#16.4.1 but none was installed.
You are currently running Node v6.10.3 but React Native requires >=8. Please use a supported version of Node.
See https://facebook.github.io/react-native/docs/getting-started.html
/Users/gustavo/React-native/projetos/SmartPark/node_modules/react-native/local-cli/server/checkNodeVersion.js:43
And when i try by this command: create-react-native-app... in the end of the creation this message is showen
npm ERR! cb() never called!
Failed to install
What is this?
The version of react-native-cli is 2.0.1

Related

React native unexpected error has ocurred

first time using react native. When i run npm start and open the localhost, it says "An unexpected error has ocurred". If i scan the QR code in the Expo app, it says "Something went wrong. Network responde timed out".
When i open the console this appears
I created the app as:
npm install -g expo-cli
expo init MyApp
Selected the typescript template
And then at the MyApp folder npm start
Its probably because of new version of expo-cli#5.4.10
Uninstall new version and install 5.4.7
For npm:
npm -g uninstall expo-cli
npm -g install expo-cli#5.4.7
For yarn:
yarn global remove expo-cli
yarn global add expo-cli#5.4.7

Getting error when installing Bugsnag 'Error: spawn npm ENOENT'

this is the first time I post here so apologies if I don't follow some rules or incorrect formatting.
I'm making an app using React Native and Expo and when I try to install bugsnag I get this error.
$ npx bugsnag-expo-cli init
√ #bugsnag/expo does not appear to be installed, do you want to install it? ... yes
√ If you want the latest version of #bugsnag/expo hit enter, otherwise type the version you want ... latest
√ Using yarn or npm? » npm
> Installing #bugsnag/expo with npm. This could take a while!
Error: spawn npm ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:269:19)
at onErrorNT (internal/child_process.js:465:16)
at processTicksAndRejections (internal/process/task_queues.js:80:21)
Are you attempting to run the bugsnag-expo-cli on Windows? The Expo CLI currently only supports MacOS and Linux:
https://docs.bugsnag.com/platforms/react-native/expo/#installation-and-configuration
As an alternative to the CLI, you can follow the manual integration guide:
https://docs.bugsnag.com/platforms/react-native/expo/manual-setup/

Unable to install 'node-red-contrib-tf-model' using NPM on windows10x64

I followed the tutorials below for the installation of the tensorflow model:
https://flows.nodered.org/node/node-red-contrib-tf-model
https://github.com/tensorflow/tfjs/blob/master/tfjs-node/WINDOWS_TROUBLESHOOTING.md
Steps taken:
I first installed the #tensorflow/tfjs-node inside Node-RED directly by running the following code:
C:\Users\username\.node-red\node_modules> npm install #tensorflow/tfjs-node#1.4.0
Ran npm install under C:\Users\username\.node-red\node_modules\#tensorflow\tfjs-node:
C:\Users\username\.node-red\node_modules\#tensorflow\tfjs-node> npm install
Finally ran npm install node-red-contrib-tf-model in the same directory:
C:\Users\username\.node-red\node_modules\#tensorflow\tfjs-node> npm install node-red-contrib-tf-model
Error that occured:
npm WARN node-red-contrib-tf-model#0.1.11 requires a peer of #tensorflow/tfjs-node#^1.4.0 but none is installed. You must install peer dependencies yourself.
npm WARN #tensorflow/tfjs-node#1.4.0 No license field.
I have installed the correct tfjs-node version, and so why does this error occur?
Edit: Tried installing the module straight from Node-RED itself and got the following
ERROR:The specified module could not be found.
C:\Users\username\.node-red\node_modules\#tensorflow\tfjs-node\lib\napi-v6\tfjs_binding.node
When I checked the above directory it turns out that I do have the 'tfjs_binding.node'.
What am I doing wrong here? Can someone please help me out.

Windows App plugin not working for react native

I'm trying to provide windows support for my react native app but somehow it's not able to generate windows folder.
the first error is...
rnpm-plugin-windows#0.2.11 requires a peer of react-native#>=0.31.0 but none is installed. You must install peer dependencies yourself.
Above error is coming when I entered the command npm install --save-dev rnpm-plugin-windows
Some time windows plugin is installed properly but below error will coming
"Windows" command not found when I entered react-native windows
You First React-native-cli install
npm install -g react-native-cli
npm install --save-dev rnpm-plugin-windows
react-native init yourproject
Usage
react-native windows [name] [--namespace <namespace>] [--windowsVersion <version>]

react-native run-android, can not running on my phone

My react-native project running ios, but can't run my android phone. This is error code ;
Starting JS server...
Building and installing the app on the device (cd android && ./gradlew installDebug)...
Incremental java compilation is an incubating feature.
FAILURE: Build failed with an exception.
Where:
Build file '/Users/haktan/Desktop/arsiv/node_modules/react-native-linear-gradient/android/build.gradle' line: 21
What went wrong:
A problem occurred evaluating project ':react-native-linear-gradient'.
Could not find method compileOnly() for arguments [com.facebook.react:react-native:+] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUİLD FAILED
Total time: 55.675 secs
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/getting-started.html
I can't install react-native-linear-gradient. Error code;
Haktan-MacBook-Pro:arsiv haktan$ npm install react-native-linear-gradient --save
npm WARN eslint-plugin-react-native#3.5.0 requires a peer of eslint#^3.17.0 || ^4 || ^5 but none is installed. You must install peer dependencies yourself.
npm WARN native-base#2.8.1 requires a peer of react#>=16.4.1 but none is installed. You must install peer dependencies yourself.
npm WARN native-base#2.8.1 requires a peer of react-native#>=0.56.0 but none is installed. You must install peer dependencies yourself.
react-native-linear-gradient#2.5.3
updated 1 package and audited 29046 packages in 34.783s
found 2 vulnerabilities (1 low, 1 high)
run npm audit fix to fix them, or npm audit for details