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