当我试图从头开始一个新的反应原生项目时,我收到了这条消息.
/Users/jorgevenegas/Dev/Projects/testreact/List/node_modules/react-native/node_modules/babel-core/lib/transformation/file/options/option-manager.js:327
throw new Error("Couldn't find preset " + JSON.stringify(val) + " relative to directory " + JSON.stringify(dirname));
^
Error: Couldn't find preset "es2015" relative to directory "/Users/jorgevenegas/Dev/Projects"
Run Code Online (Sandbox Code Playgroud)
当然,我已经安装了react-native-cli.使用node v4.2.1,react-native 0.1.5,watchman和flow也安装了.
似乎是与巴贝尔有关的事情.但我无法弄清楚原因.
我附上了一个更详细的输出屏幕截图.
谢谢你!