You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just recently started learning react-native and i'm facing issues from the beginning.
I installed node via homebrew : brew install node
Then watchman: brew install watchman
And then react-native: npm install -g react-native-cli
Now I tried to create a project: react-native init FCMTest
This is what console said:
[fsevents] Success: "/Users/amberkatyal/Documents/Workspace/React Native/FCMTest/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node" already installed
Pass --update-binary to reinstall or --build-from-source to recompile
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN react-native@0.55.4 requires a peer of react@16.3.1 but none is installed. You must install peer dependencies yourself.
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.
+ react-native@0.55.4
added 717 packages from 365 contributors and audited 10502 packages in 116.279s
found 2 vulnerabilities (1 low, 1 high)
run `npm audit fix` to fix them, or `npm audit` for details
Setting up new React Native app in /Users/amberkatyal/Documents/Workspace/React Native/FCMTest
Installing React...
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.
+ react@16.3.1
added 1 package and audited 10542 packages in 23.235s
found 2 vulnerabilities (1 low, 1 high)
run `npm audit fix` to fix them, or `npm audit` for details
Installing Jest...
npm WARN deprecated istanbul-lib-hook@1.2.1: 1.2.0 should have been a major version bump
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.
+ babel-preset-react-native@4.0.0
+ react-test-renderer@16.3.1
+ babel-jest@23.0.1
+ jest@23.1.0
added 307 packages from 255 contributors, updated 1 package and audited 34313 packages in 77.816s
found 2 vulnerabilities (1 low, 1 high)
run `npm audit fix` to fix them, or `npm audit` for details
To run your app on iOS:
cd /Users/amberkatyal/Documents/Workspace/React Native/FCMTest
react-native run-ios
- or -
Open ios/FCMTest.xcodeproj in Xcode
Hit the Run button
To run your app on Android:
cd /Users/amberkatyal/Documents/Workspace/React Native/FCMTest
Have an Android emulator running (quickest way to get started), or a device connected
react-native run-android
And now when I tried npm audit and npm audit fix it gives more errors:
npm ERR! code EAUDITNOPJSON
npm ERR! audit No package.json found: Cannot audit a project without a package.json
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/amberkatyal/.npm/_logs/2018-06-13T05_13_43_428Z-debug.log
Ambers-MacBook-Pro:React Native amberkatyal$ npm audit fix
npm ERR! code EAUDITNOPJSON
npm ERR! audit No package.json found: Cannot audit a project without a package.json
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/amberkatyal/.npm/_logs/2018-06-13T05_13_48_891Z-debug.log
Can anyone suggest how to fix the problem so that I can start doing something with react native?
The text was updated successfully, but these errors were encountered:
I just recently started learning react-native and i'm facing issues from the beginning.
I installed node via homebrew : brew install node
Then watchman: brew install watchman
And then react-native: npm install -g react-native-cli
Now I tried to create a project: react-native init FCMTest
This is what console said:
And now when I tried npm audit and npm audit fix it gives more errors:
Can anyone suggest how to fix the problem so that I can start doing something with react native?
The text was updated successfully, but these errors were encountered: