Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React Native project initial compilation error #2107

Closed
DreySkee opened this issue Jul 23, 2015 · 3 comments
Closed

React Native project initial compilation error #2107

DreySkee opened this issue Jul 23, 2015 · 3 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@DreySkee
Copy link

Hi,

I created a new React Native project and ran it in Xcode. I get following error in the terminal and can't figure how to fix:

ERROR EACCES, permission denied '/Users/andrey.pokrovskiy/.babel.json'
{"errno":3,"code":"EACCES","path":"/Users/andrey.pokrovskiy/.babel.json","syscall":"open"}
Error: EACCES, permission denied '/Users/andrey.pokrovskiy/.babel.json'
at Object.fs.openSync (evalmachine.:438:18)
at Object.fs.writeFileSync (evalmachine.:977:15)
at save (/Users/andrey.pokrovskiy/Desktop/lab/NewiOsApp/node_modules/react-native/node_modules/babel-core/lib/api/register/cache.js:35:19)
at process._tickCallback (node.js:419:13)
at Function.Module.runMain (module.js:499:11)
at startup (node.js:119:16)
at node.js:906:3

I've tried chown the file and looked for a solution but no luck.

Meanwhile Xcode throws Apple Mach-o linker error with 25 errors inside.
I never worked with Xcode so have no clue what that means.

Seemingly easy installation turned into a nightmare for me.
Any help would be appreciated!

@brentvatne
Copy link
Collaborator

Hi there! You're best off trying out StackOverflow for this kind of question because I don't believe this is an issue with React Native, but rather the system configuration on your end - if it turns out to be a bug then please come back here and ping me and we can investigate further 😄 In addition to StackOverflow, there are some other issues that may be useful for you: https://github.com/facebook/react-native/issues?utf8=%E2%9C%93&q=EACCES

@Leechikit
Copy link

sudo chmod 777 /Users/xxxx/.babel.json

@rajeshm20
Copy link

yes baby....it works great..thanks
sudo chmod 777 /Users/username/.babel.json

and again react-native init

@facebook facebook locked as resolved and limited conversation to collaborators Jul 22, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 22, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

5 participants