inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

[코드캠프] 부트캠프에서 만든 고농축 프론트엔드 코스

Macbook Air yarn 설치 실패

해결된 질문

324

NAM GYU KIM

작성한 질문수 1

0

안녕하세요 현재 MacBook Air 2022( macOS Sonoma | version 14 | Apple M1)으로 수강 중 입니다

yarn 설치시 오류가 발생합니다

Would you like to use TypeScript? … No / Yes

Would you like to use ESLint? … No / Yes

Would you like to use Tailwind CSS? … No / Yes

Would you like to use src/ directory? … No / Yes

Would you like to use App Router? (recommended) … No / Yes

Would you like to customize the default import alias (@/*)? … No / Yes

Creating a new Next.js app in /Users/namgyukim/Desktop/codecamp-frontend-NGK/class.

Using npm.

Initializing project with template: default

Installing dependencies:

- react

- react-dom

- next

added 22 packages, and audited 23 packages in 8s

3 packages are looking for funding

run npm fund for details

found 0 vulnerabilities

Initialized a git repository.

Success! Created class at /Users/namgyukim/Desktop/codecamp-frontend-NGK/class

npm notice

npm notice New patch version of npm available! 10.2.3 -> 10.2.5

npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.2.5

npm notice Run npm install -g npm@10.2.5 to update!

npm notice

namgyukim@NAMui-MacBookAir codecamp-frontend-NGK % cd class

namgyukim@NAMui-MacBookAir class % yarn add next@12.1.0 react@17.0.2 react-dom@17.0.2 --exact

zsh: command not found: yarn

namgyukim@NAMui-MacBookAir class % npm install -g yarn

npm ERR! code EACCES

npm ERR! syscall mkdir

npm ERR! path /usr/local/lib/node_modules/yarn

npm ERR! errno -13

npm ERR! Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/yarn'

npm ERR! [Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/yarn'] {

npm ERR! errno: -13,

npm ERR! code: 'EACCES',

npm ERR! syscall: 'mkdir',

npm ERR! path: '/usr/local/lib/node_modules/yarn'

npm ERR! }

npm ERR!

npm ERR! The operation was rejected by your operating system.

npm ERR! It is likely you do not have the permissions to access this file as the current user

npm ERR!

npm ERR! If you believe this might be a permissions issue, please double-check the

npm ERR! permissions of the file and its containing directories, or try running

npm ERR! the command again as root/Administrator.

npm ERR! A complete log of this run can be found in: /Users/namgyukim/.npm/_logs/2024-01-08T14_45_08_725Z-debug-0.log

어떻게 해야 다음 단계로 넘어갈 수 있을까요?Screenshot 2024-01-08 at 09.08.47.png

react node.js seo graphql next.js

답변 1

0

노원두

안녕하세요! NAM GYU님!

해당 에러를 자세히 보시면, permission denied 라는 에러 메시지를 확인하실 수 있어요!
이 에러 메시지는 권한이 없음을 의미한답니다!

 

해당 에러 메시지는 여러 상황에서 발생할 수 있어요!
그 중, 대표적으로는 현재 설치하려는 경로의 위치에 대한 권한이 없는 경우에 종종 발생한답니다!
예를 들면 맥북에 관리자계정과 철수계정이 있다고 한다면, 철수계정은 관리자가 아니기 때문에 해당 위치에 설치할 권한이 없다는 에러 메시지가 될 수 있겠죠?!^^

 

해결 방법으로는,
1. 해당 위치가 아닌 다른 폴더(게임, 작업파일 등을 설치할 때 주로 사용하시는 폴더)에서 설치하는 방법
2. 관리자권한을 잠시 빌려서 관리자권한으로 설치하는 방법(명령어 앞에 sudo를 붙이면 돼요!)

등이 있으며, 2번의 경우는 2차적인 또다른 문제가 발생할 수도 있으므로, 1번을 통해서 해결해 보세요!

fetchBoardsOfMine, fetchBoardsCountOfMine 에러 문의드립니다

0

36

1

댓글 기능 구현 중 질문드립니다.

0

66

1

쿠폰코드 발급

0

132

2

example 서버 플레이그라운드, API 접속 모두 안됩니다.

0

86

2

문의드립니다!! ㅠㅠ

0

101

2

graphql 백엔드 서버가 포폴용 빼곤 접속이 안됩니다.

0

76

2

_app.js 작성 이후로 에러가 발생하네요

0

93

2

학습자료

0

70

2

학습자료가 안열립니다.

0

49

2

플레이 그라운드 퀴즈 문제 질문이 있습니다.

0

59

0

기존강의 구매자, 업데이트 끝인가요?

0

109

3

업데이트 버전 수강

0

88

2

완벽한 프론트엔드

0

136

2

나만의 쇼핑몰 샘플 페이지 접속 확인부탁드립니다.

0

81

1

graphql 접속이 안됩니다.

0

100

2

const, let 사용 질문 드립니다.

0

70

2

싸이월드 만들기 1탄 피드백 부탁드립니다.

0

122

2

회원가입 과제 피드백 부탁드립니다.

0

80

2

styled.span / styled.input "CSS 자동완성"

0

47

1

쿠폰 발급 관련

0

166

2

서버 502 error

0

247

2

쿠폰 다시 부탁드려도 될가여?

0

140

2

a태그 패딩했을때 왜 크기가 줄어들지 않고 늘어나나요

0

184

2

2분 44초 질문

0

131

3