디파이의 가장 성공적인 예인 유니스왑 홈페이지의 interface 코드를 clone 받아서 macOs 환경에서 실행시켜보았다.
클론 깃
https://github.com/Uniswap/interface
GitHub - Uniswap/interface: 🦄 An open source interface for the Uniswap protocol
🦄 An open source interface for the Uniswap protocol - GitHub - Uniswap/interface: 🦄 An open source interface for the Uniswap protocol
github.com
아래 순서 대로 실행 및 오류를 고쳤다.
npm install
> yarn 오류 발생
오류 내용:
Brew install yarn —ignore-depencies
Error: The following directories are not writable by your user:

Npm install
> 에러 X
Npm start
> src > constants > chains.ts 73번째 줄에서 오류가 발생했다고 뜸.
그 부분 주석처리 하고 npm start 시 화면 구현 성공.
yarn build해준 뒤 다시 스타트 하면 console에 뜨던 오류들도 많이 없어짐.
결과 창:

'DeFi' 카테고리의 다른 글
메타마스크 에러 code 32603 (0) | 2022.04.18 |
---|---|
디파이 코인 개념 (1) | 2021.10.25 |
[지갑 만들기] privateKey, publicKey 생성 및 불러오기 (0) | 2021.09.09 |
[지갑 만들기] 파일 경로 설정 및 존재 여부 검사 (0) | 2021.09.09 |