5:35:33 PM: ────────────────────────────────────────────────────────────────
5:35:33 PM: 1. Build command from Netlify app
5:35:33 PM: ────────────────────────────────────────────────────────────────
5:35:33 PM:
5:35:33 PM: $ npm start
5:35:34 PM: > simple-light-react@0.1.0 start /opt/build/repo
5:35:34 PM: > craco start
5:35:38 PM: Browserslist: caniuse-lite is outdated. Please run the following
command: `npx browserslist --update-db`
5:35:39 PM: ℹ 「wds」: Project is running at http://10.7.61.53/
5:35:39 PM: ℹ 「wds」: webpack output is served from
5:35:39 PM: ℹ 「wds」: Content not from webpack is served from /opt/build/repo/public
5:35:39 PM: ℹ 「wds」: 404s will fallback to /
5:35:39 PM: Starting the development server...
5:35:39 PM:
5:35:55 PM: Browserslist: caniuse-lite is outdated. Please run:
5:35:55 PM: npx browserslist@latest --update-db
5:36:08 PM: Compiled with warnings.
5:36:08 PM:
5:36:08 PM: src/partials/Testimonials.js
5:36:08 PM: Line 1:16: 'useState' is defined but never used no-unused-vars
5:36:08 PM: Line 2:9: 'Document' is defined but never used no-unused-vars
5:36:08 PM: Line 2:19: 'Page' is defined but never used no-unused-vars
5:36:08 PM: Search for the keywords to learn more about each warning.
5:36:08 PM: To ignore,add // eslint-disable-next-line to the line before.
6:04:03 PM: Build exceeded maximum allowed runtime
6:04:08 PM: Failed to compile.
6:04:08 PM:
6:04:08 PM: ./src/index.js
6:04:08 PM: Error: ENOENT: no such file or directory,open
'/opt/build/repo/src/index.js'
此处,Netlify 表示即使我可以在我的计算机上本地部署应用程序,我的部署时间也超过了。我从来没有真正用 Java 和 React 编写过代码,所以我无法理解线程以及为什么我在使用一页网站时我的应用程序部署需要一段时间。作为参考,我的 github 存储库位于 https://github.com/tagalon/dropnutailwind。我使用的是免费模板,仅供参考。