You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running react-native init aborts with error 'Error: Couldn't find preset "react" relative to directory "/Users/agh/dev"'
The detailed error is
react-native init test
This will walk you through creating a new React Native project in /Users/agh/dev/test-react/test
Installing react-native package from npm...
/Users/agh/dev/test-react/test/node_modules/babel-core/lib/transformation/file/options/option-manager.js:372
throw new Error("Couldn't find preset " + JSON.stringify(val) + " relative to directory " + JSON.stringify(dirname));
^
Error: Couldn't find preset "react" relative to directory "/Users/agh/dev" at /Users/agh/dev/test-react/test/node_modules/babel-core/lib/transformation/file/options/option-manager.js:372:17 at Array.map (native) at OptionManager.resolvePresets (/Users/agh/dev/test-react/test/node_modules/babel-core/lib/transformation/file/options/option-manager.js:364:20) at OptionManager.mergePresets (/Users/agh/dev/test-react/test/node_modules/babel-core/lib/transformation/file/options/option-manager.js:348:10) at OptionManager.mergeOptions (/Users/agh/dev/test-react/test/node_modules/babel-core/lib/transformation/file/options/option-manager.js:307:14) at OptionManager.addConfig (/Users/agh/dev/test-react/test/node_modules/babel-core/lib/transformation/file/options/option-manager.js:207:10) at OptionManager.findConfigs (/Users/agh/dev/test-react/test/node_modules/babel-core/lib/transformation/file/options/option-manager.js:413:16) at OptionManager.init (/Users/agh/dev/test-react/test/node_modules/babel-core/lib/transformation/file/options/option-manager.js:461:12) at compile (/Users/agh/dev/test-react/test/node_modules/babel-register/lib/node.js:81:45) at loader (/Users/agh/dev/test-react/test/node_modules/babel-register/lib/node.js:126:14)
I have a fresh install of node (5.10.1) and npm (3.8.3) through nvm.
I followed the suggestions listed here, however none of them helped.
The log from react-native init is attached install.txt
Any help is greatly appreciated :-)
The text was updated successfully, but these errors were encountered:
Running react-native init aborts with error 'Error: Couldn't find preset "react" relative to directory "/Users/agh/dev"'
The detailed error is
I have a fresh install of node (5.10.1) and npm (3.8.3) through nvm.
I followed the suggestions listed here, however none of them helped.
The log from react-native init is attached
install.txt
Any help is greatly appreciated :-)
The text was updated successfully, but these errors were encountered: