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

Looks like you installed react-native globally, maybe you meant react-native-cli?

Open az-ericso opened this issue 9 years ago • 3 comments

Unable to run the app.

usc02qf5yyg8wp:react-native-web-example kklh716$ npm start

> [email protected] start /Users/kklh716/az/react-native-web-example
> react-native start

Looks like you installed react-native globally, maybe you meant react-native-cli?
To fix the issue, run:
npm uninstall -g react-native
npm install -g react-native-cli

Followed the instruction above to clean up the react-native but still seeing the same error.

az-ericso avatar Mar 11 '16 23:03 az-ericso

yeah, I got the same error -- I just looked in the package.json file and saw it was doing a react-native start command. I do it from outside of npm and it worked :/ hopefully that help you @az-ericso

j0xhn avatar May 29 '16 19:05 j0xhn

Same error only just execute react-native

 D:\1\proj\node_modules\.bin>react-native
 Looks like you installed react-native globally, maybe you meant react-native-cli?
 To fix the issue, run:
 npm uninstall -g react-native
 npm install -g react-native-cli

oklas avatar Jul 19 '17 18:07 oklas

I also ran into same issue, as an alternative install this package with yarn globally i.e. First remove package sudo npm uninstall -g react-native then install with yarn sudo yarn global add react-native-cli This worked for me !

hani647 avatar Oct 03 '18 05:10 hani647