Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't create react native project. Deprecated istanbul lib hook 1.2.1? #19684

Closed
amberkatyal opened this issue Jun 13, 2018 · 1 comment
Closed
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@amberkatyal
Copy link

amberkatyal commented Jun 13, 2018

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?

@amberkatyal
Copy link
Author

Was able to solve it by installing yarn package dependency manager. Without it its not working it must be written somewhere that it is mandatory then.

@facebook facebook locked as resolved and limited conversation to collaborators Jun 13, 2019
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jun 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

2 participants