【问题标题】:Module not found: can't resolve 'http2' after importing the Clarifai API未找到模块:导入 Clarifai API 后无法解析“http2”
【发布时间】:2021-11-27 00:05:28
【问题描述】:

我收到此错误:

Failed to compile
./node_modules/@grpc/grpc-js/build/src/server.js
Module not found: Can't resolve 'http2' in 'C:\Users\Nene\Desktop\WebWork\face-recognition-app\node_modules\@grpc\grpc-js\build\src'
This error occurred during the build time and cannot be dismissed.

每当我尝试导入 Clarifai API 时,使用 create-react-app 进行设置。

我在运行 Windows 10 的 Windows 机器上 节点版本:16.6.1 npm 版本:7.20.3

我是新手,任何帮助将不胜感激!

谢谢!

【问题讨论】:

    标签: node.js reactjs create-react-app npm-install


    【解决方案1】:

    我遇到了同样的问题,安装 http2 模块后解决了, 尝试使用npm i http2;

    【讨论】:

      猜你喜欢
      • 2019-05-08
      • 2023-01-15
      • 2021-07-17
      • 2018-04-17
      • 2018-10-01
      • 2021-10-16
      • 1970-01-01
      • 2019-07-29
      • 1970-01-01
      相关资源
      最近更新 更多