为什么 WebStorm 不允许我使用 运行 模拟器?
Why won't WebStorm allow me to run simulator?
我正在自学 React Native
但似乎我 运行 遇到了一个小问题。我想 Run
我的应用程序看看我的代码做了什么,但它不允许我这样做。它是灰色的,意思是它不可点击(下面的屏幕截图)。我环顾四周寻找这个解决方案,但找不到。如果这是一个愚蠢的问题,请提前致歉。
运行 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.
在运行 主菜单中,选择编辑配置...。然后,在打开的 Run/Debug 配置 对话框中,按 + (Alt+Insert
), select React Native 从列表中。
参见 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/
我正在自学 React Native
但似乎我 运行 遇到了一个小问题。我想 Run
我的应用程序看看我的代码做了什么,但它不允许我这样做。它是灰色的,意思是它不可点击(下面的屏幕截图)。我环顾四周寻找这个解决方案,但找不到。如果这是一个愚蠢的问题,请提前致歉。
运行 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.
在运行 主菜单中,选择编辑配置...。然后,在打开的 Run/Debug 配置 对话框中,按 + (Alt+Insert
), select React Native 从列表中。
参见 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/