Meteor不会将光纤安装在光纤束中

时间:2014-10-12 05:53:22

标签: meteor

我创建了一个包,并按照自述文件中的说明尝试安装

> 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! fibers@1.0.1 install: `node ./build.js`
npm ERR! Exit status 8
npm ERR! 
npm ERR! Failed at the fibers@1.0.1 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 install -g fiders也适用

1 个答案:

答案 0 :(得分:0)

我不确定这是否是同一个问题,但从0.9.0开始,您必须在解压缩构建后安装光纤。从自述文件:

  

要准备使用meteor bundle创建的捆绑包以便在服务器上执行,现在运行不带参数的npm install,而不必显式指定一些特定的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