与光纤模块相关的 Meteor 部署问题 [英] Problems with Meteor deployment related to fibers module

查看:56
本文介绍了与光纤模块相关的 Meteor 部署问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在尝试部署流星时,我通过以下方式安装节点光纤:

While trying to deploy meteor, I install node fiber by:

$ cd bundle/server

然后安装光纤

$ npm install fibers

它似乎已安装,但显示以下消息:

It seems to install but with this message:

`linux-x64-v8-3.14` exists; testing
Binary is fine; exiting
fibers@1.0.1 node_modules/fibers

但是,在使用以下代码部署代码时:

However, while deploying the code using:

node bundle/main.js

我收到此错误:

throw new Error('`'+ modPath+ '.node` is missing. Try reinstalling `node-fibe
~/main_repo/bundle/server/node_modules/fibers/bin/linux-x64-v8-3.20/fibers.node` is missing. Try reinstalling `node-fibers`?

我可以看到 linux-x64-v8-3.xx 的版本不同.我使用的是 Ubuntu 13.04

I can see that the versions are different for linux-x64-v8-3.xx. I'm using Ubuntu 13.04

节点版本为 v0.11.3NPM 版本为 1.2.18

Node version is v0.11.3 NPM version is 1.2.18

推荐答案

您需要先卸载 Fiber 以删除与您的服务器平台不兼容的二进制文件.

You need to uninstall fibers first to remove the binary that's not compatible with your server's platform.

cd bundle/server
npm uninstall fibers 
npm install fibers

只有在您的服务器使用不同平台时才需要这样做,即如果您的开发电脑不是 ubuntu.

You only need to do this if your server is using a different platform, i.e if your development pc is not ubuntu.

这篇关于与光纤模块相关的 Meteor 部署问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆