pancake前端環境搭建


 

代碼工程:

https://github.com/pancakeswap/pancake-swap-interface-v1

https://github.com/pancakeswap/pancake-frontend

 

安裝yarn:

brew install yarn

 

cd pancake-swap-interface-v1

yarn

報錯:

error react-scripts@4.0.1: The engine "node" is incompatible with this module. Expected version "^10.12.0 || >=12.0.0". Got "11.10.1"
error Found incompatible module.

解決:

npm install -g n

sudo n lts

yarn # 這次OK了

 

第二天,又遇到v1,v2版本問題。

v2版本代碼沒開源,v1版本代碼不打卡。

還好聲威想到回退到某一個歷史版本,這樣v1功能就能完整使用了。

試了一下,果然有效。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM