1

I'm trying to create a React Native project on MacOs through Terminal. I type the following commands in Terminal:

> cd Desktop
> mkdir curso-react
> cd curso-react/
> react-native init exercicios

After running the react-native init command the following permission error is displayed for me:

enter image description here

How can I solve this issue?

2 Answers 2

1

Seems permission for .npm folder is not right run this command to fix this issue:

sudo chown -R $(whoami) ~/.npm
Sign up to request clarification or add additional context in comments.

Comments

0

The permission error in the folder was corrected with the sudo command before the react-native command, like this:

> sudo react-native init exercicios

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.