将 NextJS 项目部署到 Vercel

时间:2021-03-01 09:45:07

标签: reactjs npm next.js vercel

我刚刚将 NextJS 项目部署到 Vercel。部署已经成功,一切都按预期运行。 但是,我收到了大量以下警告...

09:17:42 | npm WARN @auth0/nextjs-auth0@0.16.0 requires a peer of next@^9.0.0 but none is installed. You must install peer dependencies yourself.
-- | --
09:17:42 | npm WARN @iconify/react@1.1.3 requires a peer of react@^16.0.0 but none is installed. You must install peer dependencies yourself.
09:17:42 | npm WARN bootstrap@4.5.3 requires a peer of jquery@1.9.1 - 3 but none is installed. You must install peer dependencies yourself.
09:17:42 | npm WARN create-react-context@0.3.0 requires a peer of react@^0.14.0 \|\| ^15.0.0 \|\| ^16.0.0 but none is installed. You must install peer dependencies yourself.
09:17:42 | npm WARN react-datepicker@3.4.1 requires a peer of react@^16.9.0 but none is installed. You must install peer dependencies yourself.
09:17:42 | npm WARN react-datepicker@3.4.1 requires a peer of react-dom@^16.9.0 but none is installed. You must install peer dependencies yourself.
09:17:42 | npm WARN react-onclickoutside@6.9.1 requires a peer of react@^15.5.x \|\| ^16.x but none is installed. You must install peer dependencies yourself.
09:17:42 | npm WARN react-onclickoutside@6.9.1 requires a peer of react-dom@^15.5.x \|\| ^16.x but none is installed. You must install peer dependencies yourself.
09:17:42 | npm WARN react-popper@1.3.7 requires a peer of react@0.14.x \|\| ^15.0.0 \|\| ^16.0.0 but none is installed. You must install peer dependencies yourself.
09:17:42 | npm WARN react-typed@1.2.0 requires a peer of react@^16.3.0 but none is installed. You must install peer dependencies yourself.
09:17:42 | npm WARN react-typed@1.2.0 requires a peer of react-dom@^16.3.0 but none is installed. You must install peer dependencies yourself.
09:17:42 | npm WARN suneditor-react@2.15.2 requires a peer of react@^16.9.0 but none is installed. You must install peer dependencies yourself.
09:17:42 | npm WARN suneditor-react@2.15.2 requires a peer of react-dom@^16.9.0 but none is installed. You must install peer dependencies yourself.
09:17:42 | npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/watchpack-chokidar2/node_modules/fsevents):
09:17:42 | npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
09:17:42 | npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules/fsevents):
09:17:42 | npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

我在开发过程中尝试安装某些库时收到“ERESOLVE 无法解析依赖关系树”错误消息。无论如何,我使用 --legacy-peer-deps 来安装这些库,并且它们一直正常工作。事后看来,我当时应该妥善解决这些依赖问题,但我很着急,不知道如何解决!

任何人都可以透露任何信息吗?很高兴对这些警告进行排序!

提前致谢

0 个答案:

没有答案