-
Notifications
You must be signed in to change notification settings - Fork 2
[BUILD]: enableGlobalCache 활성화 & Next.js 의존성 추가 #4
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
Conversation
|
enableGlobalCache 옵션을 켜면 의존성을 로컬에서 관리하는 것으로 이해했는데, 그렇다면 설치하신 의존성을 별도로 설치하지 않으면서도 git으로 관리하지 않는다는 점은 아주 좋은 것 같습니다! 그런데 궁금한 점은, 다음과 같습니다. 글로벌 캐시로 의존성을 관리하면 아래와 같이 상대 경로로 의존성을 탐색합니다. 그러면 프로젝트를 생성한 위치가 서로 다를 경우에 해당 경로는 틀린 경로가 될 것이고, 결국 다시 패키지를 설치해줘야 한다고 해요. 실제로 올려주신 PR을 테스트해보기 위해 yarn install 명령어를 실행했고, 이에 따라 의존성을 관리하는 .pnp.cjs 파일에는 현재 제 프로젝트 폴더 위치에 맞게 packageLocation이 변경되었습니다. 이 방법은 zero-install이라고 보기 어렵다고 생각이 드는데, 혹시 어떤 이유로 enableGlobalCache 옵션을 다시 설정해주신 건지 궁금합니다! 혹은 제가 놓친 부분이 있다면 설명해주시면 감사하겠습니다! |
|
@seongminn @ohprettyhak 아직 pnpm은 직접 테스트해보진 못헀습니다. 내일 중으로 Pnpm + turborepo도 시험해보겠습니다.
|
seongminn
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pnp 전략 대신 node_modules를 사용한다면 .pnp.cjs, .pnp.loader.mjs, .yarn/cache 등이 전부 없어도 될 것 같습니다!
|
@seongminn 해당 파일은 node-modules 모드로 yarn install하게 되면 자동으로 지워지는 파일입니다. 새로 올린 커밋에도 해당 파일들은 삭제처리돼있어요! |
seongminn
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
오 그러네요? 제가 이전 커밋 체인지로 들어갔었나봐요. 그래서 여전히 남아 있는 줄 알았습니다ㅎㅎ 고생하셨습니다👍👍 일단 작업하다가 pnpm을 도입할 수 있는 상황이 되면 다시 올려주시면 감사하겠습니다!


🌍 이슈 번호
✅ 작업 내용
No candidates found에러가 발생할 수 있으며, 이는.yarn/berry/metadata/npm폴더를 지우거나yarn cache clean --mirror를 실행해 해결할 수 있습니다.📝 참고 자료