Uncaught Error: Cannot find module 'stream'

Uncaught Error: Cannot find module 'stream'

从 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,但无济于事:

这是我的代码:

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

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