【问题标题】:Uncaught Error: Cannot find module 'stream'未捕获的错误:找不到模块“流”
【发布时间】:2018-12-01 12:30:57
【问题描述】:

从 Reaction Commerce v1.21.1 升级到 v1.13.0(使用 Meteor 1.7.0.1)后,我开始收到以下流错误:

modules-runtime.js?hash=59942621baf2d3ff23916a0f601008fd2e310b63:241 Uncaught Error: Cannot find module 'stream'
    at makeMissingError (modules-runtime.js?hash=59942621baf2d3ff23916a0f601008fd2e310b63:241)
    at require (modules-runtime.js?hash=59942621baf2d3ff23916a0f601008fd2e310b63:251)
    at bunyan.js (modules.js?hash=e8f82e706d01284fec46024b7d677bc1323d896a:47108)
    at fileEvaluate (modules-runtime.js?hash=59942621baf2d3ff23916a0f601008fd2e310b63:349)
    at require (modules-runtime.js?hash=59942621baf2d3ff23916a0f601008fd2e310b63:248)
    at main.js (modules.js?hash=e8f82e706d01284fec46024b7d677bc1323d896a:46804)
    at fileEvaluate (modules-runtime.js?hash=59942621baf2d3ff23916a0f601008fd2e310b63:349)
    at require (modules-runtime.js?hash=59942621baf2d3ff23916a0f601008fd2e310b63:248)
    at index.js (index.js:1)
    at fileEvaluate (modules-runtime.js?hash=59942621baf2d3ff23916a0f601008fd2e310b63:349)

我做了一个rc reset -y(相当于meteor reset)删除所有node_modules并重新安装。唉,这种尝试没有成功。

然后我找到了这个 Stack Overflow 答案并尝试使用流星安装脚本重新安装 Meteor,但无济于事:

这是我的代码:

【问题讨论】:

  • 你解决过这个问题吗?

标签: meteor npm reaction-commerce


【解决方案1】:

我通过在 Meteor 1.8.0.2 上使用 yarn 而不是 npm install 解决了这个问题。

https://github.com/meteor/meteor/issues/10451

【讨论】:

    猜你喜欢
    • 2017-05-18
    • 2021-11-24
    • 2015-11-22
    • 1970-01-01
    • 2022-10-25
    • 2022-08-13
    • 2016-07-11
    • 2016-10-24
    • 2018-02-25
    相关资源
    最近更新 更多