Meteor bundle fails because fibers.node is missing

前端 未结 2 742
野的像风
野的像风 2020-12-05 05:14

The bundled node.fibers fails to load after deployment to a different server with the following error:

/home/ec2-user/bundle/server/node_modules/fibers/fiber         


        
相关标签:
2条回答
  • 2020-12-05 05:47

    I had the same issue with Meteor 1.0.3.2 and Node 0.12.0. I had to downgrade to Node 0.10.31. This fixed the issue.

    Remember all instructions are in the readme file in the bundle folder.

    0 讨论(0)
  • 2020-12-05 05:54

    Node fibers have to be re-installed after unpacking the bundle. To fix this problem go to the server directory.

    $ cd bundle/programs/server
    

    Then un-install fibers

    $ npm uninstall fibers
    

    Then install fibers

    $ npm install fibers
    

    Then start your application

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

    You will have to repeat that every time you update the app. This is just the way Meteor uses Node at the moment. Potential long-term fix can be found here: http://meteorhacks.com/how-meteor-uses-node.html

    NOTE: On Meteor 0.6.5 and Node 0.10.* this may work slightly differently. You may have to remove fibers manually from bundle/server as well as bundle/programs/server. You can do that with $ rm -R node_modules/fibers. Then you'll have to reinstall fibers from both locations with $ npm install fibers.

    0 讨论(0)
提交回复
热议问题