0

嘿,任何人都可以帮助我吗?我坚持了几天。我从我的项目推到了 gh 页面,我得到了消息。在此处输入图像描述

谢谢你们!!

运行 npm ci

core-js-pure@3.19.1 postinstall /home/runner/work/teste/teste/node_modules/core-js-pure node -e "try{require('./postinstall')}catch(e){}"

core-js@2.6.12 postinstall /home/runner/work/teste/teste/node_modules/babel-runtime/node_modules/core-js node -e "try{require('./postinstall')}catch(e){ }"

ejs@2.7.4 安装后 /home/runner/work/teste/teste/node_modules/ejs 节点 ./postinstall.js

fsevents@1.2.13 install /home/runner/work/teste/teste/node_modules/webpack-dev-server/node_modules/fsevents node install.js

不支持作为平台 linux 跳过“fsevents”构建

fsevents@1.2.13 install /home/runner/work/teste/teste/node_modules/watchpack-chokidar2/node_modules/fsevents node install.js

不支持作为平台 linux 跳过“fsevents”构建

core-js@3.19.1 postinstall /home/runner/work/teste/teste/node_modules/core-js node -e "try{require('./postinstall')}catch(e){}"

在 18.274 秒内添加了 1970 个包

github-teste@0.1.0 build /home/runner/work/teste/teste react-scripts build

创建优化的生产构建...

将警告视为错误,因为 process.env.CI = true。大多数 CI 服务器会自动设置它。

编译失败。

src/Components/RecipesList.jsx 第 34:6 行:React Hook useEffect 缺少依赖项:“checkIfThisPageIsFoodOrDrink”、“getRandomListFromApi”和“title”。要么包含它们,要么删除依赖数组 react-hooks/exhaustive-deps

src/Components/ShareAndFavRecipes.jsx 第 56:6 行:React Hook useEffect 缺少依赖项:'checkingIfIsFavorite'。要么包含它,要么移除依赖数组 react-hooks/exhaustive-deps

src/Pages/DrinkRecipeDetailed.jsx 第 15:6 行:React Hook useEffect 缺少依赖项:“getSelectedDrink”和“idReceita”。要么包含它们,要么删除依赖数组 react-hooks/exhaustive-deps

src/Pages/FoodRecipeDetailed.jsx 第 15:6 行:React Hook useEffect 缺少依赖项:“getSelectedMeal”和“idReceita”。要么包含它们,要么删除依赖数组 react-hooks/exhaustive-deps

npm 错误!代码 ELIFECYCLE npm 错误!errno 1 npm 错误!github-teste@0.1.0 构建:react-scripts build npm ERR!退出状态 1 npm ERR!npm 错误!在 github-teste@0.1.0 构建脚本中失败。npm 错误!这可能不是 npm 的问题。上面可能有额外的日志输出。

npm 错误!可以在以下位置找到此运行的完整日志:npm ERR!/home/runner/.npm/_logs/2021-11-24T19_56_00_696Z-debug.log 错误:进程完成,退出代码为 1。

4

0 回答 0