2013-07-12 9 views
8

流星を展開しようとしますが、私は、ノードの繊維をインストールします。繊維モジュールに関連した流星の展開に関する問題

$ cd bundle/server 

、その後、繊維

$ npm install fibers 

をインストールすることをインストールするようだが、このメッセージで:しかしながら

`linux-x64-v8-3.14` exists; testing 
Binary is fine; exiting 
[email protected] node_modules/fibers 

、使用コードデプロイ中:

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のために異なっていることがわかります。私は13.04

ノードのバージョンはv0.11.3 NPMバージョンでのUbuntuを使用すると、あなたは、サーバーのプラットフォームと互換性がありませんバイナリを削除する最初の繊維をアンインストールする必要があります1.2.18

+0

なぜあなたはこれをやっていますか?それをバンドルするには 'meteor bundle mydeploy.zip'を使用してください。 –

+0

試してください 'npm install -g fibers' – gabrielhpugliese

+2

これらのステップは流星束を使用した後です。私はインストール/アンインストールのファイバーを使用しています。それは私が他のservers.npm -gにファイバーをインストールしているのと同じエラーです。 –

答えて

1

ですよ。

サーバが異なるプラットフォームを使用している場合、つまり開発用PCがubuntuでない場合にのみ、これを行う必要があります。

+2

私たちはosXを開発しています。我々はCentOS上に展開する。その場合、アンインストール/インストールファイバー方式を使用しており、完全に動作します。しかし、同じサーバー上で実行されているapacheに関するいくつかの問題のため、リバースプロキシや別のIPへのバインディングなどの多くのソリューションは完全には動作していないようです。そこで、Ubuntu 13.04を実行している別のマシンにデプロイメントを移しました。そして、それが私たちの邪魔になるのです。 –

0

いくつかのバージョンの問題があります。それは私のために働いています :ここ

cd bundle/server 
npm uninstall fibers 
npm install [email protected] 
0

は私がやったことです:

sudo npm install -g nvm 

npm WARN deprecated [email protected]: This is NOT the correct nvm. Visit http://nvm.sh and use the curl command to install it. 

は、その後、私はこれで上のNVMを置く:

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.30.1/install.sh | bash 

NPMは、このような警告を与えた:

=> You currently have modules installed globally with `npm`. These will no 
=> longer be linked to the active version of Node when you install a new node 
=> with `nvm`; and they may (depending on how you construct your `$PATH`) 
=> override the binaries of modules installed with `nvm`: 

/usr/local/lib 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
└── [email protected] 

=> If you wish to uninstall them at a later point (or re-install them under your 
=> `nvm` Nodes), you can remove them from the system Node as follows: 

    $ nvm use system 
    $ npm uninstall -g a_module 

だから私はをやった。今、ノードのシステムバージョン使用して :

をv4.2.4(NPMのv2.14.12)が行って、すべてをアンインストール:

sh-3.2# npm uninstall -g bower 
unbuild [email protected] 
sh-3.2# npm uninstall -g cordova 
unbuild [email protected] 
sh-3.2# npm uninstall -g ember-cli 
unbuild [email protected] 
sh-3.2# npm uninstall -g fibers 
unbuild [email protected] 
sh-3.2# npm uninstall -g grunt-cli 
unbuild [email protected] 
sh-3.2# npm uninstall -g gulp 
unbuild [email protected] 
sh-3.2# npm uninstall -g ionic 
unbuild [email protected] 
sh-3.2# npm uninstall -g ios-deploy 
unbuild [email protected] 
sh-3.2# npm uninstall -g ios-sim 
unbuild [email protected] 
sh-3.2# npm uninstall -g lite-server 
unbuild [email protected] 
sh-3.2# npm uninstall -g nvm 
unbuild [email protected] 
sh-3.2# 

Downgraded to node 0.10.36: 

nvm install 0.10.36 

今多分私はそれを実行することができます。だから私は、全体のappフォルダを削除し、これを再作成します。

hotel:Sites tom$ meteor create --example localmarket 
Created a new Meteor app in 'localmarket'. 

あなたの新しいアプリを実行するには:

cd localmarket 
meteor 

あなたは流星に新しいしている場合は、ここでの学習リソースのいくつかを試してみてください:https://www.meteor.com/learn

hotel:Sites tom$ cd localmarket/ 
hotel:localmarket tom$ meteor 
[[[[[ ~/Dropbox/Sites/localmarket ]]]]] 

=> Started proxy. 
=> Started MongoDB. 
W20160118-22:04:11.145(13)? (STDERR) 
W20160118-22:04:11.146(13)? (STDERR) module.js:340 
W20160118-22:04:11.147(13)? (STDERR)  throw err; 
W20160118-22:04:11.148(13)? (STDERR)   ^
W20160118-22:04:11.148(13)? (STDERR) Error: Cannot find module 'fibers' 
W20160118-22:04:11.148(13)? (STDERR)  at Function.Module._resolveFilename (module.js:338:15) 
W20160118-22:04:11.148(13)? (STDERR)  at Function.Module._load (module.js:280:25) 
W20160118-22:04:11.148(13)? (STDERR)  at Module.require (module.js:364:17) 
W20160118-22:04:11.149(13)? (STDERR)  at require (module.js:380:17) 
W20160118-22:04:11.149(13)? (STDERR)  at Object.<anonymous> (/Users/tom/Dropbox/Sites/localmarket/.meteor/local/build/programs/server/boot.js:1:75) 
W20160118-22:04:11.149(13)? (STDERR)  at Module._compile (module.js:456:26) 
W20160118-22:04:11.149(13)? (STDERR)  at Object.Module._extensions..js (module.js:474:10) 
W20160118-22:04:11.149(13)? (STDERR)  at Module.load (module.js:356:32) 
W20160118-22:04:11.149(13)? (STDERR)  at Function.Module._load (module.js:312:12) 
W20160118-22:04:11.150(13)? (STDERR)  at Module.require (module.js:364:17) 
=> Exited with code: 8 
W20160118-22:04:21.515(13)? (STDERR) 
W20160118-22:04:21.516(13)? (STDERR) module.js:340 
W20160118-22:04:21.516(13)? (STDERR)  throw err; 
W20160118-22:04:21.516(13)? (STDERR)   ^
W20160118-22:04:21.516(13)? (STDERR) Error: Cannot find module 'fibers' 
W20160118-22:04:21.516(13)? (STDERR)  at Function.Module._resolveFilename (module.js:338:15) 
W20160118-22:04:21.517(13)? (STDERR)  at Function.Module._load (module.js:280:25) 
W20160118-22:04:21.517(13)? (STDERR)  at Module.require (module.js:364:17) 
W20160118-22:04:21.517(13)? (STDERR)  at require (module.js:380:17) 
W20160118-22:04:21.517(13)? (STDERR)  at Object.<anonymous> (/Users/tom/Dropbox/Sites/localmarket/.meteor/local/build/programs/server/boot.js:1:75) 
W20160118-22:04:21.517(13)? (STDERR)  at Module._compile (module.js:456:26) 
W20160118-22:04:21.519(13)? (STDERR)  at Object.Module._extensions..js (module.js:474:10) 
W20160118-22:04:21.519(13)? (STDERR)  at Module.load (module.js:356:32) 
W20160118-22:04:21.519(13)? (STDERR)  at Function.Module._load (module.js:312:12) 
W20160118-22:04:21.519(13)? (STDERR)  at Module.require (module.js:364:17) 

ah dang ok that does not work。

0

Node version is v0.11.3 NPM version is 1.2.18

メテオール1.3.3以降は、ノードv0.10.4xまでしか使用しません。

nvmを使用して特定のノードバージョンを実行します。

参照

関連する問題