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 [email protected] requires a peer of [email protected] but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of eslint@^3.17.0 || ^4.0.0 but none is installed. You must install peer dependencies yourself.
+ [email protected]
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 [email protected] requires a peer of eslint@^3.17.0 || ^4.0.0 but none is installed. You must install peer dependencies yourself.
+ [email protected]
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 [email protected]: 1.2.0 should have been a major version bump
npm WARN [email protected] requires a peer of eslint@^3.17.0 || ^4.0.0 but none is installed. You must install peer dependencies yourself.
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
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: