Getting meteor 0.9.2 build to work OSX -> Linux

后端 未结 2 564
被撕碎了的回忆
被撕碎了的回忆 2021-01-05 08:33

I was using meteor 0.8.x but recently tried to upgrade to 0.9.2. It works locally but I\'m not having any luck with meteor bundle or meteor build

相关标签:
2条回答
  • 2021-01-05 09:14

    I had similar problems - I posted my solution over on DO

    https://www.digitalocean.com/community/tutorials/how-to-deploy-a-meteor-js-application-on-ubuntu-14-04-with-nginx?comment=19780


    UPDATE - Here is the answer from that forum:

    If anyone else has an issue like this with bcrypt - the app probably has its own copy in /home/yourapp/bundle/programs/server/npm/npm-bcrypt/node_modules/bcrypt/

    delete that noise. Then do this.

    cd /home/yourapp/bundle/programs/server

    npm install bcrypt

    Then

    cp -r /home/yourapp/bundle/programs/server/node_modules/bcrypt /home/yourapp/bundle/programs/server/npm/npm-bcrypt/node_modules/bcrypt/

    then start your app and enjoy the meteory goodness.

    0 讨论(0)
  • 2021-01-05 09:36

    On the general problem of . . .

    (for those stumbling here via Google)

    Cannot find module 'MODULE-NAME'

    or

    Can't find npm module 'MODULE-NAME'

    If you've recently added or removed packages while the application is running, try stopping and restarting your meteor application.

    // stop ( "CTRL+C" in terminal that launched process )
    $ kill `ps ax | grep '[m]eteor' | awk '{print $1}'`
    
    // start
    $ meteor
    
    0 讨论(0)
提交回复
热议问题