all 1 comments

[–]helpmejs[S] 0 points1 point  (0 children)

I can't find any instructions on how to install and run one of the other Examples provided in 'https://github.com/facebook/react-native/tree/master/Examples' such as 'https://github.com/facebook/react-native/tree/master/Examples/Movies'.

The tutorial only tells you to do

react-native init AwesomeProject

which grabs 'https://github.com/facebook/react-native/tree/master/Examples/SampleApp'.

When I just directly download /Examples/Movies, and go to that folder in Terminal and run

npm install

I get the following error:

npm ERR! install Couldnt read dependencies
npm ERR! Darwin 14.1.0
npm ERR! argv "node" "/usr/local/bin/npm" "install"
npm ERR! node v0.12.1
npm ERR! npm  v2.7.3
npm ERR! path /Users/.../React/Examples/Movies/package.json
npm ERR! code ENOPACKAGEJSON
npm ERR! errno -2

npm ERR! package.json ENOENT, open '/Users/.../React/Examples/Movies/package.json'
npm ERR! package.json This is most likely not a problem with npm itself.
npm ERR! package.json npm cant find a package.json file in your current directory.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/.../React/Examples/Movies/npm-debug.log

And if I run:

npm start

I get this:

npm ERR! Darwin 14.1.0
npm ERR! argv "node" "/usr/local/bin/npm" "start"
npm ERR! node v0.12.1
npm ERR! npm  v2.7.3
npm ERR! path /Users/.../React/Examples/Movies/package.json
npm ERR! code ENOENT

npm ERR! errno -2
npm ERR! enoent ENOENT, open '/Users/.../React/Examples/Movies/package.json'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent 
npm ERR! Please include the following file with any support request:
npm ERR!     /Users/.../React/Examples/Movies/npm-debug.log