找不到模块:无法解析“aws4”

我的项目有两个文件夹

  1. 客户
  2. 服务器

客户端和服务器都运行,但有时当我访问任何页面时在客户端上,因此在终端上,以下错误显示了如何修复这些错误

wait  - compiling... 
warn  -

../server/node_modules/mongodb/lib/core/auth/mongodb_aws.js 
Module not found: Can't resolve 'aws4' in 'C:\Users\MyName\Desktop\Project\server\node_modules\mongodb\lib\core\auth'

../server/node_modules/mongodb/lib/operations/connect.js
Module not found: Can't resolve 'mongodb-client-encryption' in 'C:\Users\MyName\Desktop\Project\server\node_modules\mongodb\lib\operations'
 
../server/node_modules/mongoose/lib/index.js
Critical dependency: the request of a dependency is an expression

../server/node_modules/require_optional/index.js
Critical dependency: the request of a dependency is an expression
 
../server/node_modules/require_optional/index.js
Critical dependency: the request of a dependency is an expression
 
../server/node_modules/require_optional/index.js
Critical dependency: the request of a dependency is an expression
mjc151767 回答:找不到模块:无法解析“aws4”

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/2103.html

大家都在问