react-native icon indicating copy to clipboard operation
react-native copied to clipboard

Error during react-native init

Open Anahkiasen opened this issue 11 years ago • 5 comments

I'm trying to setup the demo project, however when I run react-native init AwesomeProject it hangs for a while then fails. Running with --verbose gives this as last output:

npm info lifecycle [email protected]~install: [email protected]

> [email protected] install /Users/anahkiasen/Sites/anahkiasen/AwesomeProject/node_modules/fsevents
> node-pre-gyp install --fallback-to-build



`npm install --save react-native` failed

What I don't get is if I go into the folder an manually run npm install react-native --save it works fine.

$ node --version && npm --version
v4.1.2
3.3.7

Anahkiasen avatar Oct 11 '15 17:10 Anahkiasen

Same, +1

[email protected] [email protected] Mac - OS X El Capitan

tarun1793 avatar Oct 12 '15 07:10 tarun1793

As a temporary fix,

  1. react-native init myProject
  2. cd myProject && npm install react-native --save
  3. cd ..
  4. react-native init myProject

say yes to overwrite the project.

tarun1793 avatar Oct 12 '15 08:10 tarun1793

@tarun1793 Worked for me Same environment Linux - LMDE Betsy 2

louisgv avatar Oct 17 '15 06:10 louisgv

@facebook-github-bot close

browniefed avatar Mar 20 '16 20:03 browniefed

@browniefed tells me to close this issue. If you think it should still be opened let us know why.

facebook-github-bot avatar Mar 20 '16 20:03 facebook-github-bot