๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

React Native

[ RN / expo ] expo error "EACCES: permission denied .expo/state.json."

 

React Native Expo ํ”„๋กœ์ ํŠธ์—์„œ npm run start ๋ช…๋ น์–ด๋ฅผ ์‹คํ–‰ํ–ˆ๋”๋‹ˆ

EACCES: permission denied .expo/state.json.2042385213

์œ„์™€ ๊ฐ™์€ ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ–ˆ๋‹ค.ใ… ใ… 

 

 

 

 

 

 

 

๊ตฌ๊ธ€๋ง์„ ํ•ด๋ณด๋‹ˆ...

Stack Overflow์— ๊ฐ™์€ ์˜ค๋ฅ˜์— ๋Œ€ํ•œ ๋‹ต๋ณ€์ด ๋‚˜์™€์žˆ์—ˆ๋‹ค.

sudo rm -rf ~/.expo
npm run start

 

 

 

 

 

 

๋‚ด๊ฐ€ ์˜ˆ์ƒํ•œ ์˜ค๋ฅ˜์˜ ์›์ธ์€ ๋‚ด๊ฐ€ sudo npm install --global expo-cli ๋ช…๋ น์–ด๋ฅผ ์ด์šฉํ•ด์„œ expo-cli๋ฅผ global๋กœ ์„ค์น˜ํ•ด์ฃผ์—ˆ๋Š”๋ฐ, ๊ทธ ์ด์œ ๋กœ expo์‹คํ–‰์— ๊ถŒํ•œ ์ด์Šˆ๊ฐ€ ๋ฐœ์ƒํ•œ ๊ฒƒ์œผ๋กœ ์˜ˆ์ƒ๋๋‹ค.

 

 

 

stackoverflow์— ๋‚˜์˜จ ๋‹ต๋ณ€์„ ์ฐธ๊ณ ํ•˜์—ฌ ๋ช…๋ น์–ด๋ฅผ ์‹คํ–‰ํ–ˆ๋”๋‹ˆ, ์ง€๊ธˆ์€ expo๊ฐ€ ์ •์ƒ์ ์œผ๋กœ ์‹คํ–‰๋˜๊ณ  ์žˆ๋‹ค. ๐Ÿ˜„