如何让我的 React 应用程序在 localhost:3000 中编译

问题描述

我在网上购买了一个模板。我尝试自定义它,当我在终端上使用命令 yarn start 时,我收到一条消息说“编译失败”。该项目是一个 React 应用程序。 谁能帮帮我...

下面是我的github链接https://github.com/josmorea/my-clairr-app.git enter image description here

解决方法

在运行“yarn start”之前尝试运行“yarn”或“npm install”。 如果这不能解决,请尝试“纱线添加引导程序”。

我认为您没有在开始项目之前下载“node_module”。 该文件夹包含项目运行所需的所有依赖项。使用命令“yarn”或“npm install”,您将在项目中下载此文件夹。

,

您的项目需要 bootstrap 并且错误清楚地表明

运行 npm install bootstrap --saveyarn add bootstrap

编辑 1

npm install @fullcalendar/bootstrap --save