如何处理错误“由于 @netlify/plugin-deploy-core 插件中的错误而导致部署失败。”?

2023-12-20

我在将 Next.js 项目部署到 Netlify 时遇到问题。 昨天运行良好,但现在我在部署时遇到错误。

Here I attached error log screenshot and full log. enter image description here

11:40:08 AM: Build ready to start
11:40:10 AM: build-image version: d84c79427e8f83c1ba17bcdd7b3fe38059376b68
11:40:10 AM: build-image tag: v3.6.1
11:40:10 AM: buildbot version: 734b021f1afb208e332629f2580fef69fda9a3bc
11:40:10 AM: Fetching cached dependencies
11:40:10 AM: Starting to download cache of 174.6MB
11:40:13 AM: Finished downloading cache in 2.583128304s
11:40:13 AM: Starting to extract cache
11:40:19 AM: Finished extracting cache in 5.856158207s
11:40:19 AM: Finished fetching cache in 8.536637583s
11:40:19 AM: Starting to prepare the repo for build
11:40:19 AM: Preparing Git Reference refs/heads/master
11:40:21 AM: Starting build script
11:40:22 AM: Installing dependencies
11:40:22 AM: Python version set to 2.7
11:40:22 AM: Started restoring cached node version
11:40:26 AM: Finished restoring cached node version
11:40:26 AM: Attempting node version 'lts/*' from .nvmrc
11:40:26 AM: v14.15.4 is already installed.
11:40:27 AM: Now using node v14.15.4 (npm v6.14.10)
11:40:27 AM: Started restoring cached build plugins
11:40:27 AM: Finished restoring cached build plugins
11:40:27 AM: Attempting ruby version 2.7.1, read from environment
11:40:29 AM: Using ruby version 2.7.1
11:40:29 AM: Using PHP version 5.6
11:40:29 AM: Started restoring cached node modules
11:40:29 AM: Finished restoring cached node modules
11:40:29 AM: Installing NPM modules using NPM version 6.14.10
11:40:37 AM: > @fortawesome/[email protected] /cdn-cgi/l/email-protection postinstall /opt/build/repo/node_modules/@fortawesome/fontawesome-free
11:40:37 AM: > node attribution.js
11:40:37 AM: Font Awesome Free 5.15.2 by @fontawesome - https://fontawesome.com
11:40:37 AM: License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
11:40:38 AM: npm WARN [email protected] /cdn-cgi/l/email-protection No repository field.
11:40:38 AM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] /cdn-cgi/l/email-protection (node_modules/fsevents):
11:40:38 AM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected] /cdn-cgi/l/email-protection: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
11:40:38 AM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] /cdn-cgi/l/email-protection (node_modules/watchpack-chokidar2/node_modules/fsevents):
11:40:38 AM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected] /cdn-cgi/l/email-protection: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
11:40:38 AM: added 2 packages from 8 contributors and audited 841 packages in 7.665s
11:40:38 AM: 46 packages are looking for funding
11:40:38 AM:   run `npm fund` for details
11:40:38 AM: found 0 vulnerabilities
11:40:38 AM: NPM modules installed
11:40:39 AM: Started restoring cached go cache
11:40:39 AM: Finished restoring cached go cache
11:40:39 AM: go version go1.14.4 linux/amd64
11:40:39 AM: go version go1.14.4 linux/amd64
11:40:39 AM: Installing missing commands
11:40:39 AM: Verify run directory
11:40:41 AM: ​
11:40:41 AM: ────────────────────────────────────────────────────────────────
11:40:41 AM:   Netlify Build                                                 
11:40:41 AM: ────────────────────────────────────────────────────────────────
11:40:41 AM: ​
11:40:41 AM: ❯ Version
11:40:41 AM:   @netlify/build 8.1.0
11:40:41 AM: ​
11:40:41 AM: ❯ Flags
11:40:41 AM:   deployId: 600b0df846a4a100075e9970
11:40:41 AM:   mode: buildbot
11:40:41 AM: ​
11:40:41 AM: ❯ Current directory
11:40:41 AM:   /opt/build/repo
11:40:41 AM: ​
11:40:41 AM: ❯ Config file
11:40:41 AM:   No config file was defined: using default values.
11:40:41 AM: ​
11:40:41 AM: ❯ Context
11:40:41 AM:   production
11:40:42 AM: ​
11:40:42 AM: ────────────────────────────────────────────────────────────────
11:40:42 AM:   1. Build command from Netlify app                             
11:40:42 AM: ────────────────────────────────────────────────────────────────
11:40:42 AM: ​
11:40:42 AM: $ npm run build
11:40:42 AM: > [email protected] /cdn-cgi/l/email-protection build /opt/build/repo
11:40:42 AM: > next build
11:40:43 AM: warn  - No build cache found. Please configure build caching for faster rebuilds. Read more: https://err.sh/next.js/no-cache
11:40:43 AM: info  - Creating an optimized production build...
11:41:07 AM: info  - Compiled successfully
11:41:07 AM: info  - Collecting page data...
11:41:07 AM: info  - Generating static pages (0/4)
11:41:08 AM: info  - Generating static pages (1/4)
11:41:08 AM: info  - Generating static pages (2/4)
11:41:08 AM: info  - Generating static pages (3/4)
11:41:08 AM: info  - Generating static pages (4/4)
11:41:08 AM: info  - Finalizing page optimization...
11:41:08 AM: Page                                                           Size     First Load JS
11:41:08 AM: ┌ ○ /                                                          3.62 kB        75.3 kB
11:41:08 AM: ├   /_app                                                      0 B            71.7 kB
11:41:08 AM: ├ ○ /404                                                       3.44 kB        75.1 kB
11:41:08 AM: ├ ○ /about/members                                             3.46 kB        75.1 kB
11:41:08 AM: └ ○ /good                                                      291 B            72 kB
11:41:08 AM: + First Load JS shared by all                                  71.7 kB
11:41:08 AM:   ├ chunks/1bfc9850.a98e9d.js                                  1.5 kB
11:41:08 AM:   ├ chunks/3ef630e34cd10ba68f9d468ac363ff81c534e1e9.1f52a3.js  12.8 kB
11:41:08 AM:   ├ chunks/framework.7e70a0.js                                 41.8 kB
11:41:08 AM:   ├ chunks/main.265550.js                                      6.55 kB
11:41:08 AM:   ├ chunks/pages/_app.7ea720.js                                8.35 kB
11:41:08 AM:   ├ chunks/webpack.95c2b2.js                                   751 B
11:41:08 AM:   └ css/dcb191e7b4467a4654ac.css                               2.98 kB
11:41:08 AM: λ  (Server)  server-side renders at runtime (uses getInitialProps or getServerSideProps)
11:41:08 AM: ○  (Static)  automatically rendered as static HTML (uses no initial props)
11:41:08 AM: ●  (SSG)     automatically generated as static HTML + JSON (uses getStaticProps)
11:41:08 AM:    (ISR)     incremental static regeneration (uses revalidate in getStaticProps)
11:41:08 AM: ​
11:41:08 AM: (build.command completed in 26.6s)
11:41:08 AM: ​
11:41:08 AM: ────────────────────────────────────────────────────────────────
11:41:08 AM:   2. onPostBuild command from @netlify/plugin-deploy-core       
11:41:08 AM: ────────────────────────────────────────────────────────────────
11:41:08 AM: ​
11:41:08 AM: Starting to deploy site from ''
11:41:09 AM: ​
11:41:09 AM: ────────────────────────────────────────────────────────────────
11:41:09 AM:   Plugin "@netlify/plugin-deploy-core" failed                   
11:41:09 AM: ────────────────────────────────────────────────────────────────
11:41:09 AM: ​
11:41:09 AM:   Error message
11:41:09 AM:   Error: Deploy did not succeed: Invalid filename 'node_modules/es5-ext/test/array/#/find-index/implement.js'. Deployed filenames cannot contain # or ? characters
11:41:09 AM: ​
11:41:09 AM:   Plugin details
11:41:09 AM:   Package:        @netlify/plugin-deploy-core
11:41:09 AM:   Version:        8.1.0
11:41:09 AM:   Repository:     git+https://github.com/netlify/build.git
11:41:09 AM:   npm link:       https://www.npmjs.com/package/@netlify/build
11:41:09 AM:   Report issues:  https://github.com/netlify/build/issues
11:41:09 AM: ​
11:41:09 AM:   Error location
11:41:09 AM:   In "onPostBuild" event in "@netlify/plugin-deploy-core" from core
11:41:09 AM: ​
11:41:09 AM:   Resolved config
11:41:09 AM:   build:
11:41:09 AM:     command: npm run build
11:41:09 AM:     commandOrigin: ui
11:41:10 AM: Caching artifacts
11:41:10 AM: Started saving node modules
11:41:10 AM: Finished saving node modules
11:41:10 AM: Started saving build plugins
11:41:10 AM: Finished saving build plugins
11:41:10 AM: Started saving pip cache
11:41:10 AM: Finished saving pip cache
11:41:10 AM: Started saving emacs cask dependencies
11:41:10 AM: Finished saving emacs cask dependencies
11:41:10 AM: Started saving maven dependencies
11:41:10 AM: Finished saving maven dependencies
11:41:10 AM: Started saving boot dependencies
11:41:10 AM: Finished saving boot dependencies
11:41:10 AM: Started saving rust rustup cache
11:41:10 AM: Finished saving rust rustup cache
11:41:10 AM: Started saving go dependencies
11:41:10 AM: Finished saving go dependencies
11:41:10 AM: Build failed due to a user error: Build script returned non-zero exit code: 2
11:41:10 AM: Failing build: Failed to build site
11:41:10 AM: Failed during stage 'building site': Build script returned non-zero exit code: 2
11:41:10 AM: Finished processing build request in 59.874284145s

From the error log, I guess the error should come from es5-ext module. enter image description here

这是我的 package.json 文件内容。

{
  "name": "next-starter-tailwind",
  "version": "2.0.0",
  "description": "Next.js starter styled with Tailwind CSS",
  "main": "index.js",
  "scripts": {
    "dev": "next",
    "build": "next build",
    "start": "next start"
  },
  "author": "Taylor Bryant",
  "license": "MIT",
  "dependencies": {
    "@fortawesome/fontawesome-free": "^5.15.2",
    "next": "10.0.4",
    "react": "17.0.1",
    "react-dom": "17.0.1",
    "react-icons": "^4.1.0"
  },
  "devDependencies": {
    "autoprefixer": "10.1.0",
    "classnames": "2.2.6",
    "postcss": "8.2.1",
    "postcss-100vh-fix": "1.0.2",
    "postcss-flexbugs-fixes": "5.0.2",
    "postcss-hover-media-feature": "1.0.0",
    "postcss-preset-env": "6.7.0",
    "tailwindcss": "2.0.2"
  }
}

我该如何解决这个问题?


None

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

如何处理错误“由于 @netlify/plugin-deploy-core 插件中的错误而导致部署失败。”? 的相关文章

随机推荐

  • python:对我的复制变量的更改会影响原始变量[重复]

    这个问题在这里已经有答案了 我有一个列表 我创建了一个副本 以便在保留原始列表的同时进行一些操作 然而 当我设置copy list等于org list 它们会变成同样的东西 如果我改变copy list org list也发生变化 例如 o
  • Flutter 视频播放器无法在 ios 中播放

    我正在使用 video player 包在 flutter 中播放网络视频 在安卓上运行良好 但在ios上无法加载 颤振3 3 3 视频播放器 2 4 7 PS 服务器调用是https 问题发生在真实设备和响应头有接受范围 字节 Reque
  • 无法在 MySQL 5.7 中添加外键(引用表中缺少约束)

    我正在尝试运行外键添加查询 如下所示 外键检查设置为 0 两个表中的列完全相同 此外 两者都是主键 这里的解决方案都没有帮助解决这个问题 我在本地主机上 mysql gt alter table deliveryaddress gt add
  • 如何从 b 树中删除元素?

    我正在尝试了解 b 树 我能找到的每个来源似乎都忽略了有关如何从树中删除元素同时保留 b 树属性的讨论 有人可以解释该算法或向我指出可以解释其工作原理的资源吗 维基百科页面上有对此的解释 B 树 删除 http en wikipedia o
  • 在发生未处理的异常后,我可以将执行返回到失败的方法吗?

    我有一个 ASP NET 网站 其中包含一些 WCF 服务 我已连接到 Application Error 事件 因此可以记录任何未处理的异常 我真正想做的是将执行传递回被调用的方法 这样我就可以向客户端返回一些有意义的内容 而不是抛出Fa
  • 将按结果分组保存到单独的 CSV 文件中

    我有一个代码 用于使用 CSV 数据创建组并使用该组创建新文件 我读取了 csv 文件 然后使用它 问题是当我的函数工作并使用数据创建新文件时 新文件的名称是组的名称 我不希望这样 ID Inventory Domain Requests
  • Android从缩略图获取图像路径?

    我正在尝试为目前市场上的我的应用程序提供关键更新 我需要查询 MediaStore 中的缩略图 并将缩略图加载到 GridView 中 到目前为止一切顺利 现在我只需要根据我所拥有的内容 即缩略图的路径 获取用户外部存储上实际全尺寸图像的路
  • Oracle复制数据到另一个表

    在Oracle中 我将数据从备份复制到新表 但不起作用 正确的语法是什么 Thanks select CODE MESSAGE into EXCEPTION CODES CODE MESSAGE from Exception code tm
  • 为什么 sizeof(std::mutex)==40 (gcc,clang,icc)? [复制]

    这个问题在这里已经有答案了 而不是sizeof std atomic
  • 使用 SvelteKit 将图像放置在哪里

    我已经使用 Svelte 一段时间了 现在我已切换到 SvelteKit 这样我就可以添加多个页面 我想向我的网站添加一些图像 但我不知道将它们放在哪里 在 Svelte 中我会把它们放进去public images但没有public带有
  • 在 Android 上的 AAC 流中查找

    我从 HTTP 服务器获取 AAC 流并将其用作MediaPlayer在安卓中 它运行得很好 但是当我尝试执行时mediaPlayer seekTo int position 我收到以下错误大约一百万次 WARN AACDecoder 13
  • 处理 PowerShell 脚本中的命令提示符错误

    我正在尝试运行一些命令提示符命令 例如schtasks在 PowerShell 脚本中 我想知道如何处理 PowerShell 中命令引发的错误 I tried cmd exe c schtasks Query TN xx echo ERR
  • System.Messaging - 为什么 MessageQueue 不提供 Send 的异步版本

    有人知道为什么 System Messaging 不提供异步版本的 Send 方法来将 MSMQ 消息发送到队列 实际上有 Peek 和 Receive 方法的异步版本 通过可以转换为 C 5 异步等待方法的 Begin End 对 但令人
  • 初始化一个sqlite数据库android

    大家好 我对 Android 开发还很陌生 我想向我的应用程序添加一个数据库 问题是我不知道如何仅初始化整个表一次 我读了很多书 发现你可以做到 的压倒性作用onCreate SQLiteDatabase db 辅助类中的方法 这些是我的数
  • 全局 Jest SpyOn 函数不调用原始函数

    我希望有人能帮助我理解 js 原型的交互性和jest spOn 我有一个小例子 文件中的示例类TestObj ts export default class TestObj foo Do Something e g console log
  • iOS 7 模拟器日语键盘词典位于哪里?

    这个问题和这个有点相似 如何在 iPhone 模拟器上启用日语键盘 https stackoverflow com questions 8051141 how do i enable the japanese keyboard on the
  • 为什么需要多个shared_future对象来同步数据

    指向数据结构的指针通过以下方式与多个线程共享std promise and std shared future 从书中 C 并发实践 作者 Anthony Williams 第 85 86 页 似乎只有当每个接收线程使用副本时 数据才会正确
  • 如何以编程方式显示或隐藏 Outlook 信封图标?

    例如 如何在 Outlook 规则中显示或隐藏 Outlook 信封图标 信封图标选项可通过以下位置设置 工具 gt 选项 电子邮件选项 高级电子邮件选项 在通知区域显示信封图标 我之所以说以编程方式是因为没有任何标准规则操作适用 清除消息
  • 提高 Python 中超大型字典的性能

    我发现如果我在开始时初始化一个空字典 然后在for循环中向字典中添加元素 大约110 000个键 每个键的值是一个列表 也在循环中增加 速度会下降for 循环继续 我怀疑问题是 字典在初始化时不知道键的数量 并且它没有做一些非常聪明的事情
  • 如何处理错误“由于 @netlify/plugin-deploy-core 插件中的错误而导致部署失败。”?

    我在将 Next js 项目部署到 Netlify 时遇到问题 昨天运行良好 但现在我在部署时遇到错误 Here I attached error log screenshot and full log 11 40 08 AM Build