Can't install, update or run Meteor after update

前端 未结 6 723
面向向阳花
面向向阳花 2020-12-05 16:22

I have been working with Meteor apps for a few months. For the first time, anytime I try to run a meteor app, install via (curl https://install.meteor.com | /bin/sh) or run

相关标签:
6条回答
  • 2020-12-05 16:44

    I came across this problem too. As it turns out it was a permissions problem with meteor installed on my mac as root. I reinstalled meteor as the logged in user (with files that are in ~/.meteor). Everything then worked fine.

    0 讨论(0)
  • 2020-12-05 16:46

    When you bundle / build meteor on one environment (i.e. OS X) and then try to deploy on a different environment (i.e. Ubuntu) it seems that meteor includes the wrong libraries.

    I could be wrong in this, in any case I found that uninstalling and re-installing the bcrypt library worked for me (well at least it got me to the point where I get other errors)

    Find the directory where npm list bcrypt exists, then type npm remove bcrypt and then npm install bcrypt.

    In Meteor V1.2 this is easy to find. In Meteor V1.3 I think it's in .../bundle/programs/server/npm/node_modules/meteor/npm-bcrypt

    0 讨论(0)
  • 2020-12-05 16:51

    This solution worked for me:

    1. Install the latest Node via the graphical installer at http://nodejs.org/ EDIT: should not be necessary.
    2. Install Fibers via sudo npm install fibers@1.0.1 -g per @Akshat EDIT: should not be necessary.
    3. Delete the file /usr/local/bin/meteor
    4. Delete the folder ~/.meteor
    5. curl https://install.meteor.com/ | sh
    0 讨论(0)
  • 2020-12-05 16:57

    I had this happen (again) and did more research. I ended up doing these two steps to address it:

    Remove Meteor:

    rm -rf /usr/local/meteor /usr/local/bin/meteor
    

    Install Meteor:

    curl https://install.meteor.com | /bin/sh
    
    0 讨论(0)
  • 2020-12-05 17:00

    I ended up going to my working computer, grabbing the usr/local/bin files and copy/pasting to the non-working computer. May not be ideal, but it got the job done and I am back coding on both machines. Thank you Akshat very much for the diligence on this issue!

    Paul

    0 讨论(0)
  • 2020-12-05 17:06

    Try restarting your computer/reloading a terminal because the new meteor is installed in a new location too (it looks like yours is still at /usr/local instead of ~/.meteor)

    If that doesn't work install fibers with npm install fibers@1.0.0 -g.

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