van jok
van jok

Reputation: 147

Why won't WebStorm allow me to run simulator?

I'm teaching myself React Native but it seems like I ran into a minor problem. I want to Run my app to see what my code does but it's not letting me. It's greyed out, meaning, it's not clickable (Screen shot below). I've looked around SO for this solution but can't find it. Apologies in advance if this is a silly question.
enter image description here

Error after running npm install:

npm WARN saveError ENOENT: no such file or directory, open '/Users/name/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/Users/name/package.json'
npm WARN Garen No description
npm WARN Garen No repository field.
npm WARN Garen No README data
npm WARN Garen No license field.

Upvotes: 1

Views: 140

Answers (1)

lena
lena

Reputation: 93758

In Run main menu, choose Edit Configurations.... Then, in Run/Debug Configurations dialog that opens, press + (Alt+Insert), select React Native from the list. See https://www.jetbrains.com/help/webstorm/2017.2/run-debug-configuration-react-native.html, https://blog.jetbrains.com/webstorm/2016/12/developing-mobile-apps-with-react-native-in-webstorm/

Upvotes: 1

Related Questions