728x90
반응형
yarn add mui-tel-input@latest
새로 하는 프로젝트에 국가별 전화번호 형식 폼 쓰려고
perplexity에서 추천해준 mui-tel-input을 설치하려는데
yarn add v1.22.22
error Running this command will add the dependency to the workspace root rather than the workspace itself, which might not be what you want - if you really meant it, make it explicit by running this command again with the -W flag (or --ignore-workspace-root-check).
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
이런 에러가..
루트말고 workspace를 입력하라는데
뭔소리징..?
![](https://t1.daumcdn.net/keditor/emoticon/friends1/large/009.gif)
워크스페이스 이름? 프로젝트 폴더에 적힌 이름을 적어도 계속 안되길래
구글링해보니 workspace 이름 찾는 과정을 알려줌 ㅋㅋ
먼저 가장 바깥에 있는 package.json 에 들어가면
workspaces가 보인당
그래서 이 이름을 넣었는데 이것도 아니엿고
이 apps 하위 package.json이 또 따로 있었음 ㅋㅋㅋ
거기에 name이 workspace 이름임 ㅋㅋㅋㅋ
yarn workspace web add mui-tel-input
이렇게 치니깐 잘 설치됐당 ㅋㅋ
해당 워크스페이스의 package.json 에도 잘 설치된 것을 확인완료!
![](https://t1.daumcdn.net/keditor/emoticon/friends1/large/007.gif)
728x90
반응형
'코딩탐방기' 카테고리의 다른 글
[svn탐방기] vscode에서 svn url 변경하는 법 (0) | 2023.02.07 |
---|---|
[cordova] 코르도바 플러그인 설치/삭제 방법 (0) | 2022.12.29 |
[mssql] 데이터가 없을 때 null 체크 후 0 리턴해주는 법 (2) | 2022.03.28 |
[맥m1이야기] 스프링 gradle프로젝트 svn 체크아웃 시 "Project and External Dependencies" 폴더 생성 안되는 문제 해결 (0) | 2022.03.16 |
[맥m1이야기] "org.springframework.jdbc.CannotGetJdbcConnectionException" Jdbc 디비연결 권한에러 sts 서버실행 에러해 (0) | 2022.03.14 |