2014-10-12 67 views
1

安裝纖維我創建了一個包,並嘗試安裝在自述中寫道流星不捆綁

> node ./build.js 


module.js:340 
    throw err; 
    ^
Error: Cannot find module '/root/bundle/programs/server/node_modules/fibers/build.js' 
at Function.Module._resolveFilename (module.js:338:15) 
at Function.Module._load (module.js:280:25) 
at Function.Module.runMain (module.js:497:10) 
at startup (node.js:119:16) 
at node.js:906:3 

npm ERR! [email protected] install: `node ./build.js` 
npm ERR! Exit status 8 
npm ERR! 
npm ERR! Failed at the [email protected] install script. 
npm ERR! This is most likely a problem with the fibers package, 
npm ERR! not with npm itself. 
npm ERR! Tell the author that this fails on your system: 
npm ERR!  node ./build.js 

NPM安裝-g fiders作品,以及

回答

0

我不知道這是否是同樣的問題,但從0.9.0開始,你必須在開箱之後安裝光纖。自述:

要在服務器上準備與流星包創建執行一個包,你現在運行NPM不帶參數的安裝,而不必明確指定一些特定的NPM模塊及其版本。有關更多詳細信息,請參閱生成的包中的README。

我做這樣的事情在我的部署腳本:

meteor bundle /path/to/target/bundle.tgz 
cd /path/to/target/ 
rm -rf bundle 
tar xzf bundle.tgz 
cd bundle/programs/server && npm install 
+0

是的,我也一樣,並得到了一個錯誤 – user13416 2014-10-13 03:46:22

+0

你在服務器上運行什麼版本的節點? – 2014-10-13 04:13:18

+0

最後一次在官方網站上提供v0.10.32 – user13416 2014-10-14 05:19:37