next create-next-app@latest 설치 문제
Aborting installation.
Unexpected error. Please report it as a bug:
Error: EACCES: permission denied, open '/Users/jeonginn/Library/Preferences/create-next-app-nodejs/config.json.tmp-982595282012e022'
at openSync (node:fs:581:18)
at attempt (/Users/jeonginn/.npm/_npx/efeac22998af9bf2/node_modules/create-next-app/dist/index.js:8:43165)
at Object.writeFileSync (/Users/jeonginn/.npm/_npx/efeac22998af9bf2/node_modules/create-next-app/dist/index.js:8:38664)
at Conf._write (/Users/jeonginn/.npm/_npx/efeac22998af9bf2/node_modules/create-next-app/dist/index.js:8:74912)
at set store [as store] (/Users/jeonginn/.npm/_npx/efeac22998af9bf2/node_modules/create-next-app/dist/index.js:8:73358)
at Conf.set (/Users/jeonginn/.npm/_npx/efeac22998af9bf2/node_modules/create-next-app/dist/index.js:8:71962)
at run (/Users/jeonginn/.npm/_npx/efeac22998af9bf2/node_modules/create-next-app/dist/index.js:74:51291)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
errno: -13,
code: 'EACCES',
syscall: 'open',
path: '/Users/jeonginn/Library/Preferences/create-next-app-nodejs/config.json.tmp-982595282012e022'
}
설치할 때 터미널에서 이런 메세지가 나오네요 ㅠㅠ 권한 문제인거 같아서 구글링 계속 해보면서 해봤는데 안되서 글 남깁니다 ㅠㅠ
답변 2
0
안녕하세요, 제가 답이 좀 늦었네요 🙂 아래 AI 인턴 답변 확인해 보시겠어요? 권한 문제인데 요거 쉽게 해결하시려면 사용하시는 계정에 관리자 권한을 추가하시면 됩니다 :)
0
안녕하세요, 인프런 AI 인턴입니다.
EACCES: permission denied 오류는 파일이나 디렉토리에 접근할 권한이 없을 때 발생합니다. 이 경우, create-next-app을 실행할 때 필요한 권한이 부족한 것으로 보입니다. 명령어 앞에 sudo를 붙여서 최고 관리자 권한으로 실행해 보세요. 다음과 같이 입력하면 됩니다:
sudo npx create-next-app@latest
만약 여전히 문제가 해결되지 않는다면, 권한 문제가 발생한 디렉토리나 파일의 권한을 직접 변경해 볼 수 있습니다. 다음과 같은 명령어를 사용하여 권한을 변경할 수 있습니다:
sudo chown -R $USER /Users/jeonginn/Library/Preferences/create-next-app-nodejs
이 명령어는 create-next-app-nodejs 디렉토리와 그 하위 파일들의 소유권을 현재 사용자에게 부여합니다. 이 작업 후에 다시 create-next-app 명령어를 실행해 보세요.
API 400알람 관련문의
0
7
1
사이트가 너무 달라요
0
20
1
next.js 설치
0
10
0
미션 제출하는 곳
0
11
0
답변이 다른 문제..
0
10
0
123강 질문
0
12
2
백오피스를 개발할 때 아키텍처 구성에 대한 질문
0
11
1
실습에 사용된 MD파일 공유 가능한가요?
1
26
3
mcp서버 추가 후 setting.local.json
0
15
2
ai가 만든 강의인가요?
0
23
1
globals.css를 삭제하니 404가 나옵니다
0
76
1
ESLint + Prettier 설정 관련해서 질문있습니다
1
309
2
EsLint flat config format 으로 만들어질 때 참고
0
334
1
<img /> 요소 대신 <Image /> 컴포넌트를 사용해야 하는 이유 (성능 최적화)
0
236
2
컴포넌트가 렌더링되어 HTML이 생성되는 곳 (getServerSideProps VS useEffect)
0
230
1
router를 사용할 때 왜 페이지가 갱신되는지에 대한 질문
1
336
2
Image 컴포넌트 width, height 속성
1
240
2
스페이스 + 컨트롤 눌러도 활성화 안되시는분 참고하세요...
3
342
3
파일명 명명 규칙에 대해서 묻고 싶습니다
1
872
2
getServerSideProps에서 axios 호출시
1
372
2
bun, biome 사용 질문
0
344
2
eslint 오류..
1
627
2
API Routes를 사용하는 기준과 장/단점에 대해서 알고 싶습니다!
1
896
3
Link 컴포넌트의 prefetching 기능
1
268
1





