Error: Couldn't find preset "es2015" relative to directory
-
localhost:ES6 lishuangxi$ react-native init Hello
This will walk you through creating a new React Native project in /Users/lishuangxi/react/ES6/Hello
Installing react-native package from npm...
/Users/lishuangxi/react/ES6/Hello/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/lishuangxi/react/ES6"初始化项目的时候就报这个错误,哪位大哥知道怎么解决?
-
npm install babel-preset-es2015-node