23

バンドルされた node.fibers は、別のサーバーにデプロイした後、次のエラーでロードに失敗します:

/home/ec2-user/bundle/server/node_modules/fibers/fibers.js:13
    throw new Error('`'+ modPath+ '.node` is missing. Try reinstalling `node-fibe
          ^
Error: `/home/ec2-user/bundle/server/node_modules/fibers/bin/linux-x64-v8-3.11/fibers.node` is missing. Try reinstalling `node-fibers`?
    at Object.<anonymous> (/home/ec2-user/bundle/server/node_modules/fibers/fibers.js:13:8)
    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> (/home/ec2-user/bundle/server/server.js:3:1)
    at Module._compile (module.js:449:26)
    at Object.Module._extensions..js (module.js:467:10)
4

3 に答える 3

55

バンドルを開梱した後、ノード ファイバーを再インストールする必要があります。この問題を解決するには、サーバー ディレクトリに移動します。

$ cd bundle/programs/server

その後、アンインストールfibers

$ npm uninstall fibers

次にインストールfibers

$ npm install fibers

次に、アプリケーションを起動します

$ cd ../../
$ PORT=3000 MONGO_URL=mongodb://localhost:27017/myapp node bundle/main.js

アプリを更新するたびに、これを繰り返す必要があります。これは、現時点で Meteor が Node を使用する方法です。潜在的な長期的な修正はここにあります: http://meteorhacks.com/how-meteor-uses-node.html

注: Meteor 0.6.5 と Node 0.10.* では、動作が若干異なる場合があります。bundle/serverからだけでなく、ファイバを手動で削除する必要がある場合がありますbundle/programs/server。でそれを行うことができます$ rm -R node_modules/fibers。次に、両方の場所からファイバーを再インストールする必要があります$ npm install fibers

于 2012-11-10T23:29:31.990 に答える
2

Meteor 1.0.3.2 と Node 0.12.0 でも同じ問題がありました。ノード 0.10.31 にダウングレードする必要がありました。これで問題は解決しました。

すべての手順は、bundle フォルダーの readme ファイルに記載されていることに注意してください。

于 2015-03-09T11:46:49.550 に答える