npm i antd styled-components @ant-design/icons
로 한번에 설치하려했으나 npm ERR! Cannot read properties of null (reading 'edgesOut') 에러가뜸..
이게머여...
찾아보니 npm 캐시문제나 뭐 오류라고함
이방법은 찾아보니 1.node_module삭제 2.npm캐시삭제 3.다시깔기 였는데 node_module을 삭제하고하긴싫어서 일단 캐시삭제하고 깔아보기로함
캐시삭제 npm cache clear --force
깔기 npm i styled-components
안됨
npm i styled-components@latest
깔리긴했다..!! 근데 6버전(^6.0.0)으로 깔림 나는 5버전으로깔리길원했다.
그래서 삭제후 npm uninstall styled-components
다시깜 npm i styled-components@5.1.1
잘깔린다.
결론: 버전을 붙여서 깔아보자.