Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript Introduction to React Native Implementing React Native Scenes and Routing

Aleksandar Kalapsazov
Aleksandar Kalapsazov
123 Points

Cannot start the program

Hi guys this is what Im getting as an error when trying to start the application Error: EACCES: permission denied, open '/Users/gabriela/.babel.json' at Object.fs.openSync (fs.js:646:18) at Object.fs.writeFileSync (fs.js:1291:33) at save (/Users/gabriela/Desktop/ReactNative/stage2v1/node_modules/babel-register/lib/cache.js:48:16) at _combinedTickCallback (internal/process/next_tick.js:131:7) at process._tickCallback (internal/process/next_tick.js:180:9) at Function.Module.runMain (module.js:686:11) at startup (bootstrap_node.js:187:16) at bootstrap_node.js:608:3 npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! reactnative_brandybergh@0.0.1 start: node node_modules/react-native/local-cli/cli.js start npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the reactnative_brandybergh@0.0.1 start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /Users/gabriela/.npm/_logs/2018-01-11T21_02_50_367Z-debug.log

I tried to change the permission to that .babel.json file but i cannot find it in the directory that its supposed to be if thats the mistake. But otherwise I have no idea how to fix that.

Try 'sudo npm install react-native-cli' in the terminal of your specific app folder (stage2v1 or whatever) - that worked for me when I had a similar error. Let me know, will be interesting to see if it works!

1 Answer

Joakim Sjöstedt
Joakim Sjöstedt
1,975 Points

Have the same problem, unfortunately cli didn't do it for me. I have no problem running other React Native Programs... bummer...