- nodejs
- yarn
前端利用 yarn 作为包管理器,首先确保安装了 node 14 或以上版本,然后安装:
npm install -g yarn
yarn由于网络问题,可能无法成功还原,此时可以解压doc仓库中的 node_modules 压缩包到项目目录中,然后对 node_modules/.bin 中的所有文件设置可执行权限:
chmod +x node_modules/.bin/*最后运行前端项目:
yarn start然后访问 http://localhost:3000即可。