首页 > 技术文章 > pancake前端环境搭建

zccst 2021-05-18 17:56 原文

 

代码工程:

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功能就能完整使用了。

试了一下,果然有效。

 

推荐阅读