问题构建你好世界的应用程序:错误:无效的sdkVersion。有效选项为10.0.0

时间:2018-01-30 13:44:17

标签: node.js react-native npm

我正在尝试在我的手机上运行一个hello world react本机应用程序。 当我键入npm start时,我得到以下输出:

agreement must be accepted

您可以在上面看到错误行。 当我拍摄二维码并尝试从手机连接到应用程序时,会不断显示加载。 有人可以帮助解决问题吗?

P.S。我跟着this

我使用的确切命令:

Your phone will need to be on the same local network as this computer.
For links to install the Expo app, please visit https://expo.io.

Logs from serving your app will appear here. Press Ctrl+C at any time to stop.

 › Press a to open Android device or emulator, or i to open iOS emulator.
 › Press q to display QR code.
 › Press r to restart packager, or R to restart packager and clear cache.
 › Press d to toggle development mode. (current mode: development)

17:46:20: Error: Invalid sdkVersion. Valid options are 10.0.0, 11.0.0, 12.0.0, 13.0.0, 14.0.0, 15.0.0, 16.0.0, 17.0.0, 7.0.0, 8.0.0, 9.0.0

我不得不降级到npm版本4.6.1但

0 个答案:

没有答案