gpt4 book ai didi

centos - 无法在 CENTOS 上的节点中运行 meteor 包

转载 作者:行者123 更新时间:2023-12-04 19:35:03 28 4
gpt4 key购买 nike

我有一个 meteor 应用程序,在 OSX 下的计算机上运行良好,但是当我将它复制到我的 CENTOS 6 服务器时,它给了我以下错误:

node main.js 

server/server.js:95
Fiber(function () {
^
ReferenceError: Fiber is not defined
at run (/root/bundle/server/server.js:95:3)
at Object.<anonymous> (/root/bundle/server/server.js:156:1)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:362:17)
at require (module.js:378:17)
at Object.<anonymous> (/root/bundle/main.js:1:63)
at Module._compile (module.js:449:26)

我确实使用 npm install fibers 安装了光纤包

我还将 server.js 中的端口号更改为 8282 而不是 80,以避免任何冲突。

谢谢您的帮助

最佳答案

事实证明,您必须在 meteor 项目中安装光纤,而不是作为全局包

关于centos - 无法在 CENTOS 上的节点中运行 meteor 包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14565175/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com