1
votes

In terminal when I run the following line I get an error message. Can someone please explain my error to me and tell me how I can finally emulate my react native app on ios?

npm run ios

pm ERR! path /Users/(me)/package.json
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open '/Users/(me)/package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/(me)/.npm/_logs/2018-12-23T07_08_01_594Z-debug.log

1
Did you run the command inside your project directory ? - shubham
Is this an expo or a react-native init app? - Andrew

1 Answers

1
votes

clean build and then Use this command for run on ios

=> react-native run-ios