初始化项目并安装一些依赖项(然后从yarn切换回npm) npm init react-app netlify-react-app cd netlify-react-app rm -rf ./node_modules/ yarn.lock npm i && npm up npm i -D npm-run-all prettier netlify-lambda 更新package.json中的脚本部分 " scripts " : { " build " : " run-p build:** " , " build:app " : " react-scripts build " ,