2013-07-12 11 views
8

Durante il tentativo di distribuire meteoriti, installano fibra nodo:Problemi con distribuzione Meteor sono collegati modulo fibre

$ cd bundle/server 

e quindi installando fibra

$ npm install fibers 

Sembra installare ma con questo messaggio:

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

Tuttavia, durante la distribuzione del codice utilizzando:

node bundle/main.js 

ottengo questo errore:

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`? 

posso vedere che le versioni sono diverse per linux-x64-v8-3.xx. Sto usando Ubuntu 13.04

versione nodo è v0.11.3 versione NPM è 1.2.18

+0

Perché stai facendo questo? Usa semplicemente 'meteuple mydeploy.zip' per raggrupparlo. –

+0

prova 'npm install -g fibre' – gabrielhpugliese

+2

Questi passaggi sono dopo aver usato il bundle di meteoriti. Io uso le fibre di installazione/disinstallazione perché è così che sto distribuendo su altri miei server.npm -g installa fibre mi dà lo stesso errore. –

risposta

1

È necessario disinstallare le fibre prima di rimuovere il binario che non è compatibile con la piattaforma del server.

cd bundle/server 
npm uninstall fibers 
npm install fibers 

Hai solo bisogno di fare questo se il server utilizza una piattaforma diversa, cioè se il vostro PC di sviluppo non è ubuntu.

+2

Sviluppiamo su osX. Ci schieriamo su CentOS. In questo caso utilizziamo il metodo uninstall/install fiber e funziona perfettamente. Tuttavia, a causa di alcuni problemi con Apache in esecuzione sullo stesso server, molte soluzioni come reverse proxy e binding a un altro IP non sembrano funzionare perfettamente. Quindi, abbiamo spostato la distribuzione su un'altra macchina su cui è in esecuzione Ubuntu 13.04. Ed è così che siamo bloccati. –

0

Ci sono alcuni problemi di versione. ha funzionato per me:

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

Ecco quello che ho fatto:

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. 

Poi ho messo nvm con questo:

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

NPM ha dato un avvertimento come questo:

=> 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 

Così ho fatto nvm use system. Ora, usando la versione del sistema di nodo: v4.2.4 (NPM v2.14.12)

andato e disinstallato tutto:

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 

Ora forse posso eseguirlo. Così a cancellare l'intera cartella app e ricreare con questo:

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

Per eseguire la nuova app:

cd localmarket 
meteor 

Se siete nuovi a Meteor, provare alcune delle risorse di apprendimento qui: 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 che non ha funzionato.

0

Node version is v0.11.3 NPM version is 1.2.18

Meteor 1.3.3 e prima utilizza solo fino al nodo v0.10.4x.

Utilizzare nvm per eseguire versioni di nodo specifiche.

Riferimenti

Problemi correlati