기록
[yarn 에러] Usage Error: The nearest package directory (/최상위폴더/유저이름/폴더) doesn't seem to be part of the project declared in /최상위폴더/유저이름. 본문
TIL*
[yarn 에러] Usage Error: The nearest package directory (/최상위폴더/유저이름/폴더) doesn't seem to be part of the project declared in /최상위폴더/유저이름.
mnmhbbb 2023. 8. 18. 01:29yarn 명령어를 사용했을 때 다음과 같은 에러가 발생함.
Usage Error: The nearest package directory (/최상위폴더/사용자이름/폴더) doesn't seem to be part of the project declared in /최상위폴더/사용자이름.
원인: yarn.lock 파일이 없기 때문
- yarn.lock 파일 생성
- yarn install
- 원하는 yarn 명령어 사용
'TIL*' 카테고리의 다른 글
yarn berry typescript cannot find module... 에러 (0) | 2023.08.18 |
---|---|
npm, yarn, yarn berry 등 정리 (0) | 2023.08.18 |
'next' 모듈을 찾을 수 없습니다. (0) | 2023.08.17 |
nvm 설치 도중 알게 된 .zshrc 에러 (0) | 2023.08.16 |
인프런 초보 백엔드 개발자 로드맵 강의 수강 (0) | 2023.06.21 |
Comments